home *** CD-ROM | disk | FTP | other *** search
/ Gold Medal Software 3 / Gold Medal Software - Volume 3 (Gold Medal) (1994).iso / drivers / aplus31.arj / ANSIPLUS.DOC < prev    next >
Text File  |  1994-03-21  |  125KB  |  2,833 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.                   ANSIPLUS Enhanced Console Device Driver
  24.  
  25.                         User's Guide, Release 3.10
  26.  
  27.                           Shareware Documentation
  28.  
  29.                               March 21, 1994
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                COPYRIGHT (C) 1992-1994 by Kristofer Sweger
  62.                      P.O. Box 378, Larkspur, CA 94977
  63.                            All Rights Reserved
  64.  
  65. The ANSIPLUS console device driver, supporting utility programs, and this
  66. User's Guide are Copyrighted (C) 1992-1994 by Kristofer Sweger.  This software
  67. and accompanying documentation are protected by United States Copyright law and
  68. also by International Treaty provisions.  The ANSIPLUS computer program and
  69. this documentation may not be reproduced, copied, disclosed, or transferred in
  70. any form (machine-readable or photo-copy included), except as provided here
  71. under "Limited License" (see page 3), without the express prior written
  72. approval of the author.
  73.  
  74. U.S. Government Information: Use, duplication, or disclosure by the U.S.
  75. Government of the computer software and documentation in this package shall be
  76. subject to the restricted rights applicable to commercial computer software as
  77. set forth in subdivision (b)(3)(ii) of the Rights in Technical Data and
  78. Computer Software clause at 252.227-7013 (DFARS 52.227-7013).  The Contractor/
  79. manufacturer is: Kristofer Sweger, P.O.  Box 378, Larkspur, CA 94977.
  80.  
  81.                           DISCLAIMER OF WARRANTY
  82.  
  83. Kristofer Sweger makes no warranty of any kind, express or implied, including,
  84. without limitation, any warranties of performance, merchantability and/or
  85. fitness for a particular purpose.  This software and accompanying documentation
  86. are provided "as is," without warranty of any kind.  The entire risk as to
  87. results and performance is assumed by you.
  88.  
  89. Kristofer Sweger shall not be liable for any damages, whether direct, indirect,
  90. consequential or incidental arising from a failure of the ANSIPLUS programs to
  91. operate in the manner desired by the user.  Nor shall Kristofer Sweger be
  92. liable for any data, property or other damages which may be caused directly or
  93. indirectly by use of or inability to use the software, even if Kristofer Sweger
  94. has been advised of the possibility of such damages.  In no event shall the
  95. liability for any damages exceed the price paid for the license to use the
  96. software, regardless of the form and/or extent of the claim.  By using the
  97. software you agree to this.
  98.  
  99. The author further reserves the right to revise or alter the contents of this
  100. documentation or the ANSIPLUS software package from time to time without
  101. notifying any person or group of such changes or alterations.
  102.  
  103. The Limited License and Disclaimer of Warranty shall be construed, interpreted
  104. and governed by the laws of the State of California.
  105.  
  106.                                 TRADEMARKS
  107.  
  108. Microsoft and MS-DOS are registered trademarks of Microsoft Corporation.  IBM
  109. and PS/2 are registered trademarks of IBM Corporation.  Windows is a trademark
  110. of Microsoft Corporation.  4DOS is a registered trademark of JP Software, Inc.
  111. Norton Utilities is a registered trademark of Symantec Corporation.  QEMM is a
  112. registered trademark of Quarterdeck Office Systems, Inc.  386MAX is a trademark
  113. of Qualitas, Inc.  Other product names are the trademarks of their respective
  114. manufacturers.  Other trademarked names may appear in this manual.  The author
  115. states that he is using the trademarked names only for editorial purposes, and
  116. to the benefit of the trademark owner, with no intention of infringing upon any
  117. trademark.
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.                              Table of Contents
  125.  
  126.  
  127.  
  128.   I. Introduction
  129.  
  130.           Product description . . . . . . . . . . . . . . . . . . . . .  1
  131.           Registration  . . . . . . . . . . . . . . . . . . . . . . . .  2
  132.           Limited License . . . . . . . . . . . . . . . . . . . . . . .  3
  133.           Technical Support . . . . . . . . . . . . . . . . . . . . . .  4
  134.  
  135.  II. Features summary
  136.  
  137.           VGA/EGA display features  . . . . . . . . . . . . . . . . . .  5
  138.           Integrated console functions  . . . . . . . . . . . . . . . .  6
  139.           Other ANSIPLUS features . . . . . . . . . . . . . . . . . . .  7
  140.  
  141. III. Installing ANSIPLUS
  142.  
  143.           Installing the device driver and utility programs . . . . . . 10
  144.           Changing the ANSIPLUS startup configuration . . . . . . . . . 13
  145.  
  146.  IV. Using ANSIPLUS
  147.  
  148.           Special keyboard functions  . . . . . . . . . . . . . . . . . 23
  149.           Selecting and defining colors . . . . . . . . . . . . . . . . 24
  150.           Controlling other ANSIPLUS features . . . . . . . . . . . . . 28
  151.           Creating application batch files  . . . . . . . . . . . . . . 32
  152.           Editing ANSI escape sequence programs . . . . . . . . . . . . 35
  153.  
  154.   V. ANSIPLUS escape sequences
  155.  
  156.           Overview  . . . . . . . . . . . . . . . . . . . . . . . . . . 36
  157.  
  158.  VI. Technical notes
  159.  
  160.           ANSIPLUS and Windows 3  . . . . . . . . . . . . . . . . . . . 38
  161.           ANSIPLUS and the 4DOS or NDOS command shells  . . . . . . . . 42
  162.           ANSIPLUS extensions and the ANSI standard . . . . . . . . . . 42
  163.           Escape sequence recognizer enhancements . . . . . . . . . . . 43
  164.           Direct access to video RAM vs. BIOS calls . . . . . . . . . . 43
  165.           Installation checks . . . . . . . . . . . . . . . . . . . . . 43
  166.           Hooked interrupts . . . . . . . . . . . . . . . . . . . . . . 44
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178. I.   INTRODUCTION
  179.  
  180. The DOS console device driver provides the critical interface between you and
  181. your personal computer.  It controls the output you see from DOS and accepts
  182. your keyboard input, and you spend a whole lot of time using it.
  183. Unfortunately, the standard CON and ANSI device drivers supplied with DOS do
  184. not take full advantage of the capabilities of the major video controllers
  185. currently in use: VGA and SVGA.  In addition, the standard personal computer
  186. BIOS (the "Basic Input Output System" that is part of the computer's hardware)
  187. has limitations that have had to be addressed individually by several TSR
  188. (Terminate and Stay Resident) programs or device drivers, by work-arounds and
  189. special drivers in major application programs, or by development of graphical
  190. user interfaces such as Windows.
  191.  
  192. The ANSIPLUS console device driver integrates major console elements missing
  193. from DOS and the personal computer BIOS into a single compact device driver
  194. that can easily be controlled and personalized.  With ANSIPLUS installed:
  195.  
  196.  * User interaction with the DOS command processor and many applications will
  197.    be significantly improved.
  198.  
  199.  * Screen output will be faster than with DOS's ANSI and non-ANSI drivers.
  200.  
  201.  * The user will have complete control over colors and VGA/EGA capabilities.
  202.  
  203.  * Users of Windows 3 will have access to ANSIPLUS features in all windowed and
  204.    full screen DOS sessions.
  205.  
  206.  * The user will also benefit from all the other display and keyboard features
  207.    provided by ANSIPLUS.
  208.  
  209. This is a fully functional Shareware copy of the ANSIPLUS product.  As such, it
  210. is made available to the general computing public for evaluation.  Users are
  211. licensed to operate ANSIPLUS on their personal computers for the purpose of
  212. test and evaluation for a limited trial period of thirty days.  After
  213. evaluation, if the user decides the ANSIPLUS programs are not of sufficient
  214. merit to warrant purchase through registration with Kristofer Sweger, all
  215. ANSIPLUS programs should be removed from their personal computer.  If ANSIPLUS
  216. is found to be useful and is in regular use, then registration is required.
  217.  
  218. This manual is organized in six chapters:
  219.  
  220.  * Chapter 1 introduces ANSIPLUS and covers product licensing and support;
  221.  
  222.  * Chapter 2 summarizes ANSIPLUS features for those who want to know what it
  223.    can do;
  224.  
  225.  * Chapter 3 discusses installing and configuring ANSIPLUS on your computer;
  226.  
  227.  * Chapter 4 describes keyboard functions and utility programs accessible to
  228.    users after installation;
  229.  
  230.  * Chapter 5 lists ANSIPLUS escape sequences; and
  231.  
  232.  * Chapter 6 contains several technical notes of interest to programmers and
  233.    others.
  234.  
  235.                                        1
  236.  
  237.  
  238.                                 REGISTRATION
  239.  
  240. By paying the registration fee for ANSIPLUS, registered users are granted a
  241. license to use the software on any single computer system.  Registered users
  242. also receive:
  243.  
  244.  * The TSR-capable registered version of the ANSIPLUS driver, ANSIPLUS.exe.
  245.    This driver may be loaded into memory from the DOS command line, from a
  246.    batch file (AUTOEXEC.bat), or from CONFIG.sys with DEVICE=, DEVICEHIGH=, or
  247.    INSTALL= commands.  The Registered ANSIPLUS driver also doesn't have that
  248.    pesky time delay in the sign-on message.  The registered version is NOT
  249.    Shareware, so it may not be copied for others.
  250.  
  251.  * A printed copy of the ANSIPLUS manual, which contains detailed documentation
  252.    on using the ANSIPLUS Escape sequences.  This information is provided only
  253.    in the printed manual, and is not included in either the Shareware version
  254.    or on the Registered diskettes.  (Diskette-only registration does not
  255.    include the printed manual.)
  256.  
  257.  * The most recent versions of the ANSIPLUS utility programs and other files in
  258.    the ANSIPLUS package.
  259.  
  260.  * Free BBS updates.  Registered ANSIPLUS users can obtain free updates by
  261.    installing future Shareware versions of ANSIPLUS over their registered
  262.    copies.  The ANSIPLUS installation program will automatically register a
  263.    Shareware copy when it is installed on a disk that loads a registered copy
  264.    of ANSIPLUS with its CONFIG.sys.
  265.  
  266. Registration helps support further improvements to ANSIPLUS.  The easiest way
  267. to register ANSIPLUS is to print out the registration form file, REGISTER.pls,
  268. fill it out, and mail with payment to:
  269.  
  270.           Kristofer Sweger
  271.           P.O. Box 378
  272.           Larkspur, CA 94977
  273.  
  274. Be sure to specify whether you want a 3.5" or 5.25" diskette, and to include
  275. the mailing address for your registered ANSIPLUS and manual.
  276.  
  277. Payment may be by check drawn on a United States or Canadian bank, money order,
  278. Eurocheque in U.S. dollars, or credit card (Visa or Master Card only).  Credit
  279. card orders are also accepted by telephone on the ANSIPLUS support line,
  280. 415/924-5407, and signed credit card orders may be sent by fax to 415/924-0258.
  281. We are pleased to accept purchase orders from established U.S. companies and
  282. government agencies.  However, orders under $100 must be prepaid.  For orders
  283. of $100 or more, our terms are net 30 days.  Credit references may be required.
  284.  
  285. Pricing is shown in REGISTER.pls.  California residents or businesses operating
  286. in California must add California sales tax.  Other additional charges for
  287. shipping to destinations outside the United States or Canada, delivery of a Zip
  288. file via CompuServe, or processing a EuroCheque may apply.
  289.  
  290. Multi-computer licenses for use of ANSIPLUS are available upon request at a
  291. substantially reduced fee per machine.  Call the ANSIPLUS support line for a
  292. price quotation.
  293.  
  294.                                        2
  295.  
  296.  
  297.                               LIMITED LICENSE
  298.  
  299. Non-registered users of ANSIPLUS are licensed ONLY to evaluate the programs and
  300. device driver for up to thirty days for the sole purpose of determining whether
  301. or not it meets their requirements.  All other use requires registration.  Any
  302. other use of non-registered copies of ANSIPLUS by any person, business,
  303. corporation, or government organization, is not permitted.
  304.  
  305. Registered copies of ANSIPLUS may NOT be copied for others.  However,
  306. permission is hereby granted for individuals to copy the non-registered
  307. ANSIPLUS package for their own use (for evaluation and backup purposes) or for
  308. other individuals to evaluate, provided all of the following conditions are
  309. met:
  310.  
  311.  * The ANSIPLUS package, including all related program and documentation files,
  312.    cannot be modified in any way and must be distributed in its entirety, with
  313.    no additions.  The following computer files constitute the ANSIPLUS
  314.    Shareware package:
  315.  
  316.      ANSIPLUS.sys        ANSIPLUS Shareware console device driver
  317.      ANSIPLUS.doc        ANSIPLUS Shareware documentation
  318.      SETCOLOR.exe        Color control utility program
  319.      SETAPLUS.exe        Driver features control utility program
  320.      ANSICOM.exe         ANSI escape sequence editor
  321.      NEWAPLUS.exe        ANSIPLUS bootup configuration program
  322.      APLUSLIB.exe        Execution library for the utility programs
  323.      SETCOLOR.sch        Color schemes file for SETCOLOR.exe
  324.      CONSETUP.com        Sample escape sequence program
  325.      PUSHVID.com         Save current video mode, video page and colors
  326.      POPVID.com          Restore saved video mode, page and colors
  327.      LOCKPAL.com         Lock the 16-color palette
  328.      UNLOKPAL.com        Unlock the 16-color palette
  329.      WINVGA16.com        MS Windows 16-color VGA driver palette change
  330.      APLUS.pif           Sample Windows PIF file
  331.      INSTALL.exe         Installation program
  332.      INSTALL.inf         Installation control file
  333.      REGISTER.pls        ANSIPLUS registration form
  334.      README.pls          Release notes
  335.  
  336.  * No price or other compensation may be charged for the ANSIPLUS package.  A
  337.    distribution cost may be charged for the cost of the diskette, shipping and
  338.    handling, as long as the total per disk does not exceed US $6.00 in the
  339.    United States and Canada, or US $10.00 internationally.
  340.  
  341.  * The ANSIPLUS package cannot be bundled or included with other goods or
  342.    services, nor can it be included in any commercial software packaging offer,
  343.    nor can it be "rented" or "leased" to others, without specific prior written
  344.    agreement from Kristofer Sweger.
  345.  
  346. All rights not expressly granted here are reserved to Kristofer Sweger.
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.                                        3
  354.  
  355.  
  356.  
  357.                              TECHNICAL SUPPORT
  358.  
  359. We want our users to be satisfied, and we find the interaction with real users
  360. of ANSIPLUS to be of great value.  Many ANSIPLUS features are the result of
  361. user input.  If you have a problem evaluating ANSIPLUS or want to make a
  362. suggestion, comment, or complaint, please contact us immediately, whether you
  363. have registered or not.  There are several ways you can reach ANSIPLUS support:
  364.  
  365.  * Electronic mail via CompuServe at 72713,1241
  366.  
  367.  * Electronic mail via Internet at 72713.1241@compuserve.com
  368.  
  369.  * Fax at 415/924-0258
  370.  
  371.  * Voice telephone at 415/924-5407
  372.  
  373.  * U.S. mail at P.O. Box 378, Larkspur, CA 94977 USA
  374.  
  375. The ANSIPLUS technical support telephone line, 415/924-5407, can be called
  376. weekdays from 10:00 AM to 5:00 PM, Pacific Time.  We ask that you recognize
  377. that this service can easily be overwhelmed by calls with questions that are
  378. already answered in the documentation provided.  When you do call, please try
  379. to have all your questions (and any necessary supporting data) ready so that we
  380. can deal with them efficiently in one short session.
  381.  
  382. If you are reporting a software problem, we will need specific information
  383. about your computer system and how to recreate the problem:
  384.  
  385.  * What is the problem, or what is not behaving as expected?
  386.  
  387.  * What exactly must be done to cause the problem to appear?
  388.  
  389.  * What did you do to try to fix or work around the problem?
  390.  
  391.  * What is your software and hardware environment?  This includes the version
  392.    of ANSIPLUS you are using, your computer type, DOS version, video
  393.    controller, any memory managers, other device drivers or TSRs loaded, and
  394.    any other software or hardware in use at the time.
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.                                        4
  413.  
  414. II.  FEATURES SUMMARY
  415.  
  416. Although many of the ANSIPLUS features described here may seem technical, each
  417. meets a need, and they all cooperate as parts of one compact console device
  418. driver.  In this chapter, they have been collected into three major groups:
  419. VGA/EGA display features, integrated console functions, and other ANSIPLUS
  420. features.  The remaining chapters give details regarding specific features.
  421.  
  422.                          VGA/EGA DISPLAY FEATURES
  423.  
  424. The ANSIPLUS enhanced DOS console device driver is tailored to take advantage
  425. of SVGA, VGA and EGA display capabilities:
  426.  
  427. Mode recognition    For any SVGA/VGA/EGA display mode, the driver can properly
  428.                     address the entire screen.  ANSIPLUS automatically
  429.                     recognizes and adapts to various VGA or EGA screen modes,
  430.                     both text and graphics, including extended modes with large
  431.                     numbers of lines and/or columns.  ANSIPLUS can also
  432.                     automatically adapt to and compensate for older video
  433.                     controllers with very limited numbers of colors or shades
  434.                     (i.e., CGA or monochrome boards).
  435.  
  436. Speed               In text and in 16-color VGA/EGA graphics display modes, the
  437.                     driver bypasses the ROM BIOS and goes straight to the video
  438.                     RAM, so it can operate much faster than either the original
  439.                     DOS console driver or the DOS ANSI driver. Programs that
  440.                     write large character strings to the standard output
  441.                     (console) file handle in "raw" mode can generate their
  442.                     output many times faster.
  443.  
  444. Color selection     ANSIPLUS provides full control over colors. In color text
  445.                     modes, sixteen foreground and background colors are
  446.                     supported.  In 16-color VGA/EGA graphics modes, ANSIPLUS
  447.                     allows mixing of background colors, for a total of 136
  448.                     possible background colors.  In 256-color VGA graphics
  449.                     modes, all 256 foreground and background colors are
  450.                     supported.
  451.  
  452. Palette control     Control over VGA/EGA palette registers and VGA DAC
  453.                     registers allows selecting and maintaining colors using the
  454.                     video controller's full capabilities.  The driver traps all
  455.                     video mode changes, and installs the palette and/or DAC
  456.                     colors of the user's, or of ANSIPLUS's color scheme.
  457.                     Applications that set their own palettes will continue to
  458.                     do so, but those that do not can now use custom color
  459.                     choices.  Blinking can also be kept disabled to allow 16
  460.                     background colors in text modes.
  461.  
  462. Text size           ANSIPLUS allows selection of alternate VGA/EGA character
  463.                     sets, giving control over the character height, and thus
  464.                     the number of text lines used in any VGA/EGA video mode.
  465.  
  466. Smooth scrolling    ANSIPLUS supports smooth scrolling of the screen (for fast
  467.                     CPUs with 16-bit VGA/EGA), so the screen can be read while
  468.                     it is moving. Options are provided to control the use and
  469.                     rate of smooth scrolling.
  470.  
  471.                                        5
  472.  
  473.  
  474. Extended modes      The ANSI Set Mode control sequence has been expanded to
  475.                     allow specifying SVGA/VGA/EGA modes that are based on full
  476.                     AX and/or BX CPU register values, extending ANSI-type
  477.                     control to Super VGA/EGA controllers that require such
  478.                     register settings.  Super VGA controllers that conform to
  479.                     the VESA standard are also automatically recognized, and
  480.                     VESA extended set mode calls are made by the ANSIPLUS
  481.                     driver for modes of 100h or higher.
  482.  
  483.  
  484.                        INTEGRATED CONSOLE FUNCTIONS
  485.  
  486. The ANSIPLUS driver efficiently integrates several useful console functions
  487. that in the past had to be provided by separate TSR programs or device drivers:
  488.  
  489. Screen saver        A screen saver blanks the VGA/EGA screen after several
  490.                     minutes of screen, keyboard and mouse inactivity.  The
  491.                     screen can be brought back by any keystroke (including
  492.                     shift keys) or by mouse movement or buttons.  The screen
  493.                     saver feature can be enabled or disabled by the user, and
  494.                     is automatically disabled in certain situations.
  495.  
  496. Keyboard buffer     As many PC users eventually discover, the standard personal
  497.                     computer BIOS provides a keyboard input type-ahead buffer
  498.                     of only 15 characters, which is enough for only the
  499.                     shortest of commands.  ANSIPLUS extends this by 113
  500.                     keystrokes for a total type-ahead of 128 keystrokes
  501.                     (configurable for more if necessary).
  502.  
  503. Repeated keys       Another problem with the standard BIOS keystroke buffer
  504.                     occurs when keys are held down too long, and the buffer
  505.                     rapidly fills with repeated (or "typematic") keys, which
  506.                     are then processed long after the key is lifted.
  507.                     Spreadsheet users often experience this when holding down
  508.                     one of the arrow keys.  ANSIPLUS disables repeat key
  509.                     type-ahead, but does allow repeat keys that are immediately
  510.                     consumed by programs, so the type-ahead buffer cannot be
  511.                     filled with unintended keystrokes.  Repeated digits are
  512.                     also suppressed, making it impossible to inaccurately enter
  513.                     a number just because a key is held down too long.  The
  514.                     rate at which repeated keys are generated is also
  515.                     configurable.
  516.  
  517. Key stacking        ANSIPLUS supports key stacking, which can load the keyboard
  518.                     buffer with a series of keystrokes and feed them into
  519.                     programs or commands as if they had been typed at the
  520.                     keyboard.  This feature can be useful for automating
  521.                     startup of programs, software testing, and demonstrations.
  522.                     Keys can be added to the buffer by ANSI escape sequence, by
  523.                     ANSIPLUS utility program command, or, for users of the 4DOS
  524.                     4.0+ or NDOS Version 7.0+ command shells, by KEYSTACK
  525.                     command.
  526.  
  527.  
  528.  
  529.  
  530.                                        6
  531.  
  532. Scroll-back         Every DOS user sooner or later needs to recall something
  533.                     that was on the screen, but has scrolled off the top.
  534.                     Programmers often encounter this with error messages, and
  535.                     other users with file directory listings.  To address this
  536.                     problem, ANSIPLUS supports screen scroll-back: all lines
  537.                     scrolled and cleared from the screen in text modes are
  538.                     captured by the ANSIPLUS driver so that the user can stop
  539.                     at any time and browse through recent screen contents.
  540.  
  541. Scroll lock         Large directory listings and other rapidly generated screen
  542.                     output can often fly by on the screen too fast to be read.
  543.                     Hitting the Scroll Lock key will freeze the screen when
  544.                     ANSIPLUS or the BIOS next tries to scroll it.  When the
  545.                     screen is frozen, several keystroke options allow control
  546.                     over subsequent screen output.
  547.  
  548. Beep tone           The standard personal computer BIOS Control-G beep tone
  549.                     generator waits in a programmed loop until sound output is
  550.                     completed.  Sometimes, error or other conditions detected
  551.                     in a running program can generate a rapid sequence of
  552.                     beeps, and the computer will just hang for what seems an
  553.                     eternity, beeping away.  ANSIPLUS has an
  554.                     interrupt-controlled tone generator that lets the beep tone
  555.                     be finished in parallel with subsequent processing.
  556.                     Multiple beeps are ignored if a tone is currently being
  557.                     generated, so programs cannot be slowed down by a rapid
  558.                     series of beeps.  Options are provided for defining the
  559.                     tone and using or not using the tone generator.
  560.  
  561.                           OTHER ANSIPLUS FEATURES
  562.  
  563. Other ANSIPLUS features include:
  564.  
  565. User control        Menu driven, mouse controllable utilities give the user
  566.                     full control over selected colors, color palettes, border
  567.                     colors, video modes, text height, key reassignment, beep
  568.                     tone definition, driver table sizes, and all other
  569.                     configurable features.
  570.  
  571. Loading options     At load time, the ANSIPLUS driver can divide itself into
  572.                     sharable code (about 21K) and unshared code/data (about 5K)
  573.                     sections, placing the shared code in XMS upper memory
  574.                     blocks (from 640K to 1M), in high memory (1M to 1M+64K), or
  575.                     in expanded memory (EMS), and leaving only the unshared
  576.                     part in low memory.  The registered driver can be loaded as
  577.                     either a TSR program or a device driver.
  578.  
  579. Bright key echo     ANSIPLUS highlights user-typed keys when they are displayed
  580.                     by DOS on the screen, giving a clear visual separation of
  581.                     typed entries from computer output.  If unwanted, this
  582.                     feature can be disabled.
  583.  
  584. ANSI support        All DOS ANSI.sys escape sequences are supported, plus
  585.                     additional ANSI/VT-100 escape sequences for clearing the
  586.                     screen, erasing lines, inserting and deleting lines, and
  587.                     inserting and deleting characters.
  588.  
  589.                                        7
  590.  
  591.  
  592. Windows aware       ANSIPLUS features have been tested and adjusted for maximum
  593.                     compatibility in Windows DOS sessions, both full screen and
  594.                     within a window. The ANSIPLUS driver detects when Windows
  595.                     is running, and automatically disables or alters certain
  596.                     features, such as the screen blanker, that may interfere.
  597.  
  598. Mono/CGA support    ANSIPLUS should give reasonable and readable displays in
  599.                     all display modes, including those with a very limited
  600.                     number of colors or shades.  ANSI-type programs written in
  601.                     terms of 16 colors will be executable on machines with
  602.                     simpler video capabilities, if ANSIPLUS is running on that
  603.                     machine.
  604.  
  605. Key processing      ANSIPLUS includes several special key processing options:
  606.  
  607.                     (1) the shift-alphabetic keys can cause Caps-Lock to
  608.                         unlock, much like a typewriter releases its shift lock
  609.                         whenever a shift key is pressed;
  610.  
  611.                     (2) the Enter key can restore Caps-Lock after it was
  612.                         unlocked by a shift-alphabetic key, thus restoring Caps
  613.                         on completion of an "entry";
  614.  
  615.                     (3) Control-C can cause a Control-Break, for those users
  616.                         who prefer the Control-C key; and
  617.  
  618.                     (4) the DOS "Non-Destructive" read function can return the
  619.                         last key in the keyboard buffer instead of the first,
  620.                         so that it always reflects what has last been typed.
  621.  
  622. Key reassignment    ANSIPLUS has the ability to translate single keystrokes to
  623.                     full commands or other pre-determined key sequences.  These
  624.                     key reassignments can be applied either to keys entered
  625.                     through DOS or to all keys entered via BIOS Interrupt 16h.
  626.                     Both expansion of keys and changes to key reassignments can
  627.                     also be enabled or disabled independently.  When key
  628.                     reassignment changes are disabled, a distinctive tone
  629.                     sounds on any attempt to redefine a key, making it easy to
  630.                     detect ANSI-type files that contain key redefinitions.
  631.  
  632. Line wrapping       When the length of a line displayed on the screen exactly
  633.                     equals the width of the screen, the standard DOS console
  634.                     device drivers cause a blank line to be output.  ANSIPLUS
  635.                     suppresses output of these unintended blank lines.
  636.  
  637. Graphics cursor     The DOS console drivers do not show a cursor on the screen
  638.                     when in graphics modes.  ANSIPLUS can display a cursor when
  639.                     keyed entries are requested by DOS in a graphics mode.
  640.  
  641. BIOS TTY ANSI       ANSIPLUS provides an option to trap and execute ANSI
  642.                     control sequences in BIOS Int 10h Write TTY output as well
  643.                     as in DOS standard console output.
  644.  
  645.  
  646.  
  647.  
  648.                                        8
  649.  
  650.  
  651. Transparent mode    On occasion, it is undesirable to have the ANSI driver fill
  652.                     in the background color of each character space as it
  653.                     writes characters.  ANSIPLUS includes a "transparent"
  654.                     background mode that will write each output character in
  655.                     the current foreground color over whatever background is
  656.                     currently at the cursor position.
  657.  
  658. Text treatments     In 16-color graphics modes, ANSIPLUS can apply bold,
  659.                     underline, black shadow, slant (italics), or black outline
  660.                     text treatments, in any combination, to output characters
  661.                     for emphasis or improved legibility.
  662.  
  663. Esc pass-through    Unlike the ANSI.sys driver, the Esc character is trapped by
  664.                     ANSIPLUS only when followed by a left bracket ("["), so
  665.                     programs that write Esc (a left arrow) to the screen will
  666.                     continue to do so after ANSIPLUS is installed.
  667.  
  668. VGA mono emulation  Because application developers with VGA color monitors
  669.                     sometimes need to see how their systems will look when run
  670.                     with a monochrome VGA monitor, ANSIPLUS provides an option
  671.                     to emulate a monochrome VGA monitor on a color monitor.
  672.  
  673. Status reporting    To allow programs to query ANSIPLUS about more than just the
  674.                     current cursor location, the device status report has been
  675.                     extended to report information about the current video
  676.                     mode, video page, numbers of rows, columns and colors,
  677.                     current or default definition of colors, and more.
  678.  
  679. Installation checks To facilitate developing applications that can use ANSIPLUS
  680.                     features, ANSIPLUS responds to standard Int 2Fh ANSI.sys
  681.                     installation checks, and includes extensions that can
  682.                     distinguish ANSIPLUS from ANSI.sys.
  683.  
  684. Free BBS Updates    When a Shareware copy of ANSIPLUS is installed on a disk
  685.                     that boots a Registered copy, the INSTALL program will
  686.                     convert the new Shareware copy into a Registered copy with
  687.                     the same serial number and signon message as the Registered
  688.                     ANSIPLUS already on the disk.  Registered users can thus
  689.                     benefit from future improvements to ANSIPLUS at no cost, if
  690.                     they have access to CompuServe or a bulletin board system
  691.                     (BBS) that maintains recent Shareware versions of ANSIPLUS.
  692.  
  693.  
  694.  
  695.  
  696.  
  697.  
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704.  
  705.  
  706.  
  707.                                        9
  708.  
  709. III. INSTALLING ANSIPLUS
  710.  
  711.  
  712.         INSTALLING THE ANSIPLUS DEVICE DRIVER AND UTILITY PROGRAMS
  713.  
  714. The ANSIPLUS package includes an installation and configuration program called
  715. INSTALL.exe, which should properly handle most installations.  INSTALL analyzes
  716. the runtime environment, CONFIG.sys and AUTOEXEC.bat of the target drive,
  717. locates the source files, copies ANSIPLUS to the target drive (or to any
  718. sub-directories of the user's choice), and updates CONFIG.sys and AUTOEXEC.bat.
  719.  
  720. Starting with MS-DOS 6.0, the CONFIG.sys file can contain menus and multiple
  721. configuration blocks.  When a CONFIG.sys menu is being used, a new ANSIPLUS
  722. installation will require selecting a configuration block to receive the
  723. ANSIPLUS DEVICE= command, and an update will require selecting a block that
  724. either already refers to ANSIPLUS, or to which it will be added.  INSTALL makes
  725. an initial choice of configuration block, and this can be corrected by the user
  726. before copying the ANSIPLUS release files by using the "Revise Parameters"
  727. option on the Installation menu.
  728.  
  729. The INSTALL program also gives an opportunity (via the Installation menu) to
  730. set the destination directory for each installed file or for classes of files.
  731. If the directory is not specified for a file, the following assumptions will
  732. apply:
  733.  
  734.  * If an ANSIPLUS file name matches the name of a file in the default
  735.    directory, root directory, or on the system PATH of the destination drive,
  736.    then the ANSIPLUS file will be copied over the matched file (i.e., updated).
  737.    This is intended to make installation of ANSIPLUS updates a snap.
  738.  
  739.  * New files are added to a directory for each class of file (i.e., driver,
  740.    utility program, or documentation/other).  If any file in the class is being
  741.    updated, then the class directory will be the same as the updated files.
  742.    Otherwise, the class directory will be "\ANSIPLUS".
  743.  
  744. It is recommended that you put all of the ANSIPLUS utility programs (SETCOLOR,
  745. SETAPLUS, ANSICOM, NEWAPLUS and APLUSLIB) on your system PATH so that they can
  746. be used easily.  It is critical that the execution library, APLUSLIB.exe, be
  747. located either in the same directory as the other utility programs or on the
  748. system PATH.  If it is not, the utility programs will not run!  You may also
  749. want to place the ANSIPLUS.sys device driver in the root directory.
  750.  
  751. For those who are not content to use default driver feature and other settings,
  752. after the release files have been copied to the target drive, the configuration
  753. section of the INSTALL program lets the user set the startup (boot) driver
  754. table sizes, colors, and feature settings, as well as high memory loading
  755. options that affect CONFIG.sys.  These configurations can be performed either
  756. at installation time, or any time later on an installed drive by using the
  757. NEWAPLUS.exe program.  Context sensitive help (via the F1 key) is provided for
  758. all entries.  Startup configuration changes are described in the following
  759. section, starting on page 13.
  760.  
  761. Before installing ANSIPLUS, or any other new device driver, be sure you have a
  762. bootable floppy disk as insurance against trouble getting your system to run
  763. after the device driver is installed.
  764.  
  765.  
  766.                                        10
  767.  
  768.  
  769. International users should be aware of the following:
  770.  
  771.  * If you are using the KEYB program to set up your keyboard, the following
  772.    command MUST be executed after you load KEYB, otherwise most ANSIPLUS
  773.    keyboard related features will not work:
  774.  
  775.             SETAPLUS LINK KEYEVENT
  776.  
  777.    The INSTALL program will automatically add this command to your AUTOEXEC.bat
  778.    file if it finds a reference in it to KEYB.
  779.  
  780.  * If you are using the DISPLAY.sys device driver for code page switching, the
  781.    ANSIPLUS.sys device driver must be installed before DISPLAY.sys in your
  782.    CONFIG.sys file.  The INSTALL program will automatically handle this in most
  783.    cases.  However, under DOS 6.0, if ANSIPLUS is installed in a configuration
  784.    block that will be processed by MS-DOS after the configuration block that
  785.    contains DISPLAY.sys, this situation will not be detected by INSTALL.  This
  786.    must be corrected by directly editing CONFIG.sys.  If you are also using
  787.    Windows, see "ANSIPLUS and Windows 3" starting on page 38 for Windows
  788.    configuration changes you must make if you are using DISPLAY.sys.
  789.  
  790. Stacker users should note: On systems using Stacker or similar disk compression
  791. utilities that can change the hard disk drive letters around, INSTALL should
  792. still be able to locate CONFIG.sys, AUTOEXEC.bat or the ANSIPLUS driver file if
  793. it was previously installed.  When CONFIG.sys is not found on the (hard disk)
  794. target drive, other drives will be searched for it, starting with drive C:.
  795. AUTOEXEC.bat is then assumed to reside on either the target drive or the same
  796. drive as CONFIG.sys.  And if the ANSIPLUS driver is not found where CONFIG.sys
  797. says it will be, the same path on other drives will be searched for it as well.
  798. In the event that these search rules still cannot locate the correct files, a
  799. system environment variable (SET ANSIPLUS=d:) may be used to identify the drive
  800. with CONFIG.sys and the ANSIPLUS driver, and this will override the search.
  801.  
  802. It is strongly recommended that ANSIPLUS be permanently excluded from automated
  803. memory loading optimizations, such as DOS 6+ MEMMAKER, QEMM OPTIMIZE, or 386MAX
  804. MAXIMIZE.  There are three reasons for this:
  805.  
  806.  * The ANSIPLUS "/U" memory loading option, which loads ANSIPLUS shared code to
  807.    upper memory blocks, is likely to confuse the optimizers because the driver
  808.    memory requirements change depending on whether ANSIPLUS is loaded low or
  809.    high, and when the driver is loaded low, ANSIPLUS allocates some upper
  810.    memory blocks itself.
  811.  
  812.  * Changes you make at a later date with the NEWAPLUS program to driver table
  813.    sizes can result in a larger load size for the ANSIPLUS driver.  This could
  814.    cause the driver or something loaded after it to be loaded low instead of
  815.    high, either because the driver is larger than the (QEMM) response file
  816.    expects, or it has become too large for everything to fit in the space
  817.    available.
  818.  
  819.  * ANSIPLUS has seven memory loading options that may be easily selected using
  820.    NEWAPLUS.exe.  Some of these options let you place part of the driver in EMS
  821.    memory or HMA, which the memory managers cannot do.  The memory managers
  822.    give only two choices: low or high.  You therefore have more control using
  823.    NEWAPLUS.
  824.  
  825.                                        11
  826.  
  827.  
  828. ANSIPLUS can be permanently excluded from MEMMAKER by adding a line containing
  829. "*ANSIPLUS" to the file MEMMAKER.inf.  Exclusion from QEMM's OPTIMIZE is
  830. accomplished by adding a line containing "ANSIPLUS" to the file OPTIMIZE.exc in
  831. the QEMM directory (create this file if it doesn't exist).
  832.  
  833. The following examples illustrate using INSTALL to install ANSIPLUS:
  834.  
  835.  * If you received ANSIPLUS on a floppy disk and want to install it on your
  836.    hard disk, use the following installation procedure:
  837.  
  838.      (1) Set the default directory to the hard disk (i.e., get a C> prompt).
  839.  
  840.      (2) Insert the ANSIPLUS diskette in drive A: (or other floppy drive).
  841.  
  842.      (3) Enter the following command:
  843.  
  844.             A:INSTALL
  845.  
  846.  * If you received ANSIPLUS as a ZIP file (named ANSIPLUS.zip in this example),
  847.    use the following procedure:
  848.  
  849.      (1) Create a temporary sub-directory on the hard disk to contain the
  850.          unzipped ANSIPLUS files.  Move ANSIPLUS.zip to this directory and make
  851.          it be the default directory.  This directory must be different from
  852.          the directory that will receive the installed ANSIPLUS files.
  853.  
  854.      (2) Unzip the files into the directory with the command:
  855.  
  856.             PKUNZIP ANSIPLUS
  857.  
  858.      (3) Then enter the command:
  859.             INSTALL
  860.  
  861.           After installation is complete, you may delete the files in the
  862.           temporary sub-directory (but keep the ZIP file as a backup).
  863.  
  864.  * To install ANSIPLUS on bootable disk B:, from hard disk directory C:\APLUS,
  865.    enter the command:
  866.  
  867.             C:\APLUS\INSTALL B:
  868.  
  869.  
  870.  
  871.  
  872.  
  873.  
  874.  
  875.  
  876.  
  877.  
  878.  
  879.  
  880.  
  881.  
  882.  
  883.  
  884.                                        12
  885.  
  886.                 CHANGING THE ANSIPLUS STARTUP CONFIGURATION
  887.  
  888. Changes to the startup configuration for ANSIPLUS are made with the NEWAPLUS
  889. program.  (INSTALL also lets you make these changes, but INSTALL.exe is
  890. actually a tiny program that calls NEWAPLUS.exe to perform the installation.)
  891. All changes that you make with the NEWAPLUS.exe program will take effect only
  892. after you reboot your computer.  You run NEWAPLUS with a command of the form:
  893.  
  894.             NEWAPLUS <target>
  895.  
  896. where <target> is the drive letter for a bootable diskette or hard disk
  897. partition with ANSIPLUS installed.  If <target> is omitted, the drive that was
  898. originally used to load MS-DOS will be selected.  After NEWAPLUS confirms that
  899. the target disk contains ANSIPLUS, you are presented with a startup
  900. configuration menu that has eleven revision option groups:
  901.  
  902. Initial Colors
  903.  
  904.  * Color selection sub-menus let you choose from the current 16-color palette
  905.    the screen colors that will be used for text foreground and background when
  906.    the system starts up.  ANSIPLUS maintains two sets of foreground and
  907.    background colors: those that are currently on the screen, and "default"
  908.    colors to be applied when an ANSI Set Graphics Rendition reset (i.e., Esc
  909.    [0m) is detected.  The startup selections for both color combinations can be
  910.    controlled from this sub-menu.
  911.  
  912. Palette Definition
  913.  
  914.  * The color palette determines the precise colors you will see in 16 color
  915.    video modes.  ANSIPLUS maintains two palettes: the current palette on the
  916.    screen, and a default palette that is loaded when ANSIPLUS first starts and
  917.    whenever the video display mode is changed.  All changes you make using the
  918.    NEWAPLUS color palette option will apply to the default palette.
  919.  
  920. Border Color
  921.  
  922.  * The border color is generated for the "overscan" region on the outside edges
  923.    of the screen.  You can select any available color as the default border
  924.    color, which will be installed when ANSIPLUS starts up and whenever the
  925.    display mode is set.
  926.  
  927.  
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.                                        13
  944.  
  945.  
  946. Loading Option
  947.  
  948. ANSIPLUS can be loaded into memory up to seven different ways, depending on
  949. your computer's capabilities and what is contained in CONFIG.sys:
  950.  
  951.  * ANSIPLUS can be loaded into low memory below 640K. This is the default.
  952.    The following CONFIG.sys command loads ANSIPLUS to low memory:
  953.  
  954.        DEVICE=ANSIPLUS.sys
  955.  
  956.  * ANSIPLUS can load itself into upper memory blocks.  At load time, the driver
  957.    can divide itself into two sections: sharable code totaling about 21K, and
  958.    unsharable code/data totaling about 5K.  The shared code can be placed in
  959.    XMS upper memory blocks (from 640K to 1M), in high memory (1M to 1M+64K), or
  960.    in expanded memory (EMS), leaving only the unsharable 5K in low memory.
  961.    Because all ANSIPLUS driver data remains in low memory as part of the DOS
  962.    CON driver, it will be localized under Windows 3.0.  Under DOS 5.0 or later,
  963.    this option should work whether DOS=UMB appears in CONFIG.sys or not.  The
  964.    following CONFIG.sys command loads ANSIPLUS into the XMS upper memory
  965.    blocks:
  966.  
  967.        DEVICE=ANSIPLUS.sys /U
  968.  
  969.  * ANSIPLUS can load itself into the high memory addressed just above 1
  970.    megabyte (the "HMA").  Under DOS 5.0 or later, with the DOS=HIGH line in
  971.    CONFIG.sys, ANSIPLUS shares this memory with DOS; if DOS=HIGH is not used,
  972.    but an XMS driver is installed, the HMA is obtained from the XMS driver; or,
  973.    for earlier DOS versions or systems not using an XMS driver, the HMA is
  974.    taken in the same manner as the VDISK.sys driver allocates extended memory.
  975.    When ANSIPLUS is loaded into the HMA, certain (antique) programs that assume
  976.    memory addresses over one megabyte will "wrap around" to addresses starting
  977.    at zero may not operate correctly.  If you experience any problems, load
  978.    ANSIPLUS into XMS upper memory blocks, expanded memory or low memory
  979.    instead.  The following CONFIG.sys command will load ANSIPLUS into the high
  980.    memory area:
  981.  
  982.        DEVICE=ANSIPLUS.sys /H
  983.  
  984.  * ANSIPLUS can load itself into expanded memory (EMS) which conforms to LIM
  985.    (Lotus-Intel-Microsoft) Specification 4.0 or 3.2, eliminating the need for
  986.    21K of scarce UMB, HMA or low memory resources.  Because expanded memory may
  987.    be shared with other programs, drivers or TSRs, there is a chance of a
  988.    software interaction that may prevent an application from running, keep
  989.    Windows from loading, or cause the system to fail.  (For example, Version 6
  990.    of 386MAX will refuse to let Windows start in 386 Enhanced mode when
  991.    ANSIPLUS is running in EMS.  This limitation does not exist for the EMM386
  992.    or QEMM386 memory managers.) If you experience any problems using ANSIPLUS
  993.    in EMS, do not use the feature.  Load ANSIPLUS into XMS upper memory, the
  994.    HMA, or low memory instead.  The following CONFIG.sys command will load
  995.    ANSIPLUS into expanded memory:
  996.  
  997.        DEVICE=ANSIPLUS.sys /E
  998.  
  999.  
  1000.  
  1001.  
  1002.                                        14
  1003.  
  1004.  
  1005.  * ANSIPLUS can be loaded high by DEVICEHIGH or equivalent.  This method is not
  1006.    recommended for users of Windows 3.0 386 Enhanced Mode because the variables
  1007.    in the ANSIPLUS driver will not be localized.  Localization of upper memory
  1008.    blocks is done correctly by Windows 3.1.  See "ANSIPLUS and Windows 3,"
  1009.    starting on page 38 for a discussion of this issue if you are using Windows
  1010.    3.0.  The following CONFIG.sys command will load ANSIPLUS high using EMM386:
  1011.  
  1012.        DEVICEHIGH=ANSIPLUS.sys
  1013.  
  1014.  * ANSIPLUS can be loaded high, and then its shared code can be placed in HMA.
  1015.    This requires only 5K of XMS upper memory after ANSIPLUS has completed its
  1016.    initialization.  However, upper memory space for the entire driver must be
  1017.    available when it is first loaded:
  1018.  
  1019.        DEVICEHIGH=ANSIPLUS.sys /H
  1020.  
  1021.  * ANSIPLUS can be loaded high, and then its shared code can be placed in EMS:
  1022.  
  1023.        DEVICEHIGH=ANSIPLUS.sys /E
  1024.  
  1025.  
  1026.  
  1027.  
  1028.  
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.                                        15
  1062.  
  1063.  
  1064. Keyboard
  1065.  
  1066.  * By default, ANSIPLUS increases the keyboard buffer capacity to 128
  1067.    characters, which should hold at least as much as most users can type ahead
  1068.    accurately.  To expand the computer's keyboard buffer capacity, an extension
  1069.    buffer is retained within ANSIPLUS, and whenever the ROM BIOS buffer has
  1070.    space available for keys held in the ANSIPLUS buffer, they are moved into
  1071.    the standard ROM BIOS buffer.  You configure this buffer by specifying the
  1072.    total number of keys to be buffered.
  1073.  
  1074.  * The keyboard repeat rate determines how fast keys will be generated when a
  1075.    key is held down and not lifted.  For systems with enhanced keyboards,
  1076.    ANSIPLUS lets this rate be configured anywhere from 2 to 300 characters per
  1077.    second.  For most applications, an ANSIPLUS repeat rate setting greater than
  1078.    30 characters per second will take precedence over the keyboard repeat rate
  1079.    set by other programs, such as the DOS MODE program.  Because of imprecise
  1080.    timing under Windows, however, this feature is disabled when Windows is
  1081.    running.  If desired, it may also be disabled entirely to use the standard
  1082.    rate.
  1083.  
  1084.  * The keyboard typematic delay, which determines how long a key must be held
  1085.    down before repeated keys will start to be generated, is also configurable.
  1086.    ANSIPLUS accepts four settings from 250 ms to 1000 ms.
  1087.  
  1088.  * Normally, the Caps Lock key locks the alphabetic keys in upper case, and
  1089.    when a shift key is held down, letters are entered in lower case.  This
  1090.    continues until Caps Lock is pressed again to unlock the Caps, and can often
  1091.    be confusing if you forget that Caps were locked.  ANSIPLUS has an option to
  1092.    have shift-alphabetic keys cause the Caps to unlock, much like a typewriter
  1093.    releases its shift lock whenever a shift key is pressed.
  1094.  
  1095.  * In many cases, when Caps Lock has been released by a shift-alphabetic key
  1096.    combination, mixed upper and lower case characters are needed for only a
  1097.    single entry, and Caps Lock should be reinstated thereafter.  ANSIPLUS
  1098.    includes an option to turn Caps Lock back on again when the Enter key is
  1099.    pressed after Caps were unlocked by a shift-alphabetic key, thus restoring
  1100.    Caps Lock on completion of an "entry."
  1101.  
  1102.  * For those users who find it more convenient to break out of programs with
  1103.    the Control-C key combination than with Control-Break, ANSIPLUS has an
  1104.    option to generate a keyboard break whenever Control-C is entered.
  1105.  
  1106.  * The "Non-Destructive" read function of the DOS driver reads an input key
  1107.    from the keyboard unofficially just to see what it is, allowing it to really
  1108.    be read later.  This function is used to see what has been typed, and to
  1109.    read it or flush the keyboard buffer only if it matches some criterion (such
  1110.    as Escape or Control-C).  Because the standard DOS keyboard driver always
  1111.    looks at the first key in the buffer, if it doesn't meet the criterion, no
  1112.    matter what is typed later will not be checked.  ANSIPLUS gets around this
  1113.    with an option to return the last key from the buffer instead of the first.
  1114.  
  1115.  * Key stacking can be disabled to use another key stacking driver (for
  1116.    example, NDOS KEYSTACK.sys), or when typing files that contain unknown ANSI
  1117.    escape sequences that might execute undesired commands.  When disabled, a
  1118.    warning tone will sound on any attempt to stack keys by ANSI escape
  1119.    sequence.
  1120.                                        16
  1121.  
  1122.  
  1123. Assigning Keys
  1124.  
  1125.  * ANSIPLUS has the ability to translate single keystrokes to full commands or
  1126.    other pre-determined key sequences.  This feature is called key
  1127.    reassignment, and it can be enabled or disabled without affecting the
  1128.    contents of the key reassignment tables stored within the ANSIPLUS device
  1129.    driver.
  1130.  
  1131.  * Ordinarily, key reassignment applies only to input keys requested from DOS,
  1132.    so programs that bypass DOS and use BIOS Interrupt 16h for keyboard input
  1133.    will not have any keys reassigned.  This is usually desirable, since major
  1134.    applications generally have built-in assumptions about the meaning of
  1135.    function and Alt keys, and these should be operative.  An ANSIPLUS feature
  1136.    is provided for those cases when you want to reassign keys for applications
  1137.    that bypass DOS and use Int 16h for keyboard input.  If you enable this
  1138.    feature, key reassignment will apply to all keystrokes entered through both
  1139.    Int 16h and DOS.  If it is disabled, key reassignment will only apply for
  1140.    keys requested from DOS.
  1141.  
  1142.  * ANSIPLUS can also prevent ANSI key reassignment redefinition.  This can be
  1143.    useful before trying ANSI files that contain unknown ANSI sequences that
  1144.    might redefine keys to execute undesired commands.  A warning tone (like the
  1145.    theme from "Dragnet") will sound whenever an attempt to redefine a key
  1146.    reassignment is detected.
  1147.  
  1148.  * The space allocated for storing ANSI keystroke reassignments may also be
  1149.    configured.  Each key reassignment requires approximately four bytes plus
  1150.    the length of the reassignment.  You configure the total table size in
  1151.    bytes.
  1152.  
  1153.  
  1154. Tone Definition
  1155.  
  1156.  * The ANSIPLUS driver includes a timer-interrupt controlled Control-G beep
  1157.    tone generator that lets the beep tone be finished in parallel with
  1158.    subsequent processing.  Multiple beeps are ignored if a tone is currently
  1159.    being output, so programs cannot be slowed down by a rapid series of beeps.
  1160.    The tone generator is used for both standard DOS console output and BIOS Int
  1161.    10h Write TTY calls.  If the tone generator is disabled, the original DOS
  1162.    beep tone will be used.
  1163.  
  1164.  * When Windows 3 is running in 386 Enhanced mode, and a DOS program running in
  1165.    the background outputs a Control-G, the background program's virtual 8086
  1166.    may not be running fast enough to accurately time the tone.  Because of
  1167.    this, the tone can drag out and sound strange.  Disabling ANSIPLUS tone
  1168.    generation under Windows restores the original Windows sound driver, but
  1169.    makes the tone frequency and duration non-configurable.
  1170.  
  1171.  * The beep tone definition is stored in a table in the ANSIPLUS driver that
  1172.    requires four bytes per frequency and duration.  You can configure the size
  1173.    of this table by specifying the maximum number of notes allowed in the beep.
  1174.  
  1175.  
  1176.  
  1177.  
  1178.  
  1179.                                        17
  1180.  
  1181.  
  1182. Color Control
  1183.  
  1184.  * The ANSIPLUS driver ordinarily traps all video mode changes and installs the
  1185.    palette and/or DAC colors of the user's, or of ANSIPLUS's default color
  1186.    scheme.  Applications that set their own palettes will continue to do so,
  1187.    but those that do not will use the installed color choices.  If this feature
  1188.    is disabled, the VGA/EGA controller manufacturer's colors (the "OEM" colors)
  1189.    will be loaded when the video mode changes.
  1190.  
  1191.  * Some 256-color DOS applications assume that the OEM 256-color palette has
  1192.    been loaded when the 256-color mode was selected, and never define the
  1193.    colors that they will use.  A feature is provided to disable ANSIPLUS color
  1194.    loading for DOS 256-color modes if you are running such an application.
  1195.  
  1196.  * Some 256-color drivers for Windows apparently assume that the OEM 256-color
  1197.    palette has been loaded when the 256-color mode was selected, and never
  1198.    define the colors that Windows will use.  Because of this, ANSIPLUS normally
  1199.    does not load its default colors when a 256-color mode is selected under
  1200.    Windows.  However, a separate feature is provided to allow this if desired.
  1201.  
  1202.  * In color text modes, the VGA and EGA allow either sixteen background colors
  1203.    with no blinking foreground text, or eight background colors with foreground
  1204.    text that may or may not blink.  In monochrome text mode 07h, when blinking
  1205.    is disabled there are three backgrounds possible: black, gray or white, and
  1206.    with blinking enabled there are two: black and gray.  If blinking is
  1207.    disabled, ANSIPLUS will display sixteen (or three) background colors, and
  1208.    when it is enabled, you will see only eight (or two) background colors.
  1209.  
  1210.  * ANSIPLUS highlights user-typed keys when they are displayed on the screen,
  1211.    giving a clear visual separation of typed entries from computer output.
  1212.    Over dark backgrounds, the key is shown in white, and over light backgrounds
  1213.    it is shown in black.  If this feature is not wanted, it can be disabled.
  1214.  
  1215.  * Because application developers with VGA color monitors sometimes need to see
  1216.    how their systems will look when run with a VGA monochrome monitor, ANSIPLUS
  1217.    provides emulation of monochrome monitor VGA on a color monitor.  In normal
  1218.    operation, this feature should be disabled.
  1219.  
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227.  
  1228.  
  1229.  
  1230.  
  1231.  
  1232.  
  1233.  
  1234.  
  1235.  
  1236.  
  1237.  
  1238.                                        18
  1239.  
  1240. Display Control
  1241.  
  1242.  * The ANSIPLUS screen saver blanks the VGA/EGA screen after several minutes of
  1243.    screen, keyboard and mouse inactivity.  The screen is brought back by any
  1244.    keystroke, including shift keys, or, if a mouse is connected, by moving it
  1245.    or pressing a button.  The screen saver is automatically disabled under
  1246.    Windows and when certain games or other programs that take over the timer
  1247.    are running, and does not interfere with any known programs.  However, if
  1248.    this feature is not desired, it can be turned off.
  1249.  
  1250.  * The time of inactivity before the screen goes blank is configurable between
  1251.    one and twenty minutes.
  1252.  
  1253.  * As a "last resort" test for system activity, the screen saver can read scan
  1254.    codes from the keyboard controller at port 60h.  This test should only be
  1255.    needed when you are running an application that completely takes over all
  1256.    keyboard interrupts and directly controls the screen display as well.  On
  1257.    some computers, enabling this feature can interfere with processing of the
  1258.    arrow and page up/down keys on enhanced keyboards, or with a PS/2 type
  1259.    mouse, so the feature should be disabled unless it is really needed to keep
  1260.    the screen saver from blanking the screen during a specific application.
  1261.  
  1262.  * During periods of keyboard inactivity, ANSIPLUS's screen saver uses MS mouse
  1263.    Int 33h calls to test the status of the mouse.  In the unlikely event these
  1264.    calls interfere with the mouse driver, they can be disabled.
  1265.  
  1266.  * On the IBM PS/2, the mouse is usually connected to the pointing device port,
  1267.    and mouse activity will cause interrupts on the Mouse Event interrupt number
  1268.    74h, so ANSIPLUS monitors this interrupt to unblank the screen.  If this
  1269.    interrupt is used for another purpose on your computer, this feature should
  1270.    be disabled.
  1271.  
  1272.  * The DOS console drivers do not show a cursor on the screen when using a
  1273.    graphics mode.  ANSIPLUS can display a pseudo-cursor when keyed entries are
  1274.    requested by DOS in a graphics mode.  If this feature is desired, it can be
  1275.    enabled.  If it interferes with the appearance of a graphics mode program,
  1276.    it should be left disabled.
  1277.  
  1278.  * Because almost all applications that use 256-color graphics modes assume
  1279.    that DOS does not place a cursor on the screen, the ANSIPLUS pseudo-cursor
  1280.    is normally disabled when in a 256-color mode.  If desired, you can enable
  1281.    the cursor.
  1282.  
  1283.  * Programs that write screen output using ROM BIOS Int 10h Function 14 (Write
  1284.    TTY) ordinarily cannot use ANSI Escape sequences for screen control.
  1285.    ANSIPLUS includes a feature to allow this.
  1286.  
  1287.  * When the VGA/EGA video controller does not allow setting a palette register
  1288.    unless a vertical retrace is in progress, or when "snow" or other problems
  1289.    occur during palette color changes, ANSIPLUS provides an option to wait for
  1290.    a vertical retrace whenever setting a palette register.  Otherwise, this
  1291.    feature should remain disabled.
  1292.  
  1293.  * ANSIPLUS contains an internal stack for saving and restoring video context
  1294.    information (rows and columns, colors, display modes, etc.).  The default
  1295.    size allows 25 pushes, but this can be configured to a larger value if
  1296.    needed.
  1297.                                        19
  1298.  
  1299. Screen Scroll-Back
  1300.  
  1301.  * As lines are scrolled off the top of the screen, the ANSIPLUS driver can
  1302.    save them for later viewing.  This viewing is called screen scroll-back.
  1303.    Most of the time this is a very useful and unobtrusive feature, but if it is
  1304.    not desired, or if storage of the saved lines in either expanded memory
  1305.    (EMS) or unused portions of the video RAM is found to interfere with
  1306.    something, it can be disabled.
  1307.  
  1308.  * Ordinarily, when ANSIPLUS is initialized by DOS, it will try to allocate 64K
  1309.    of expanded memory (LIM EMS 4.0) for scroll-back.  When EMS is used for
  1310.    scroll-back, storage capacity will be about 1,000 lines, and the scroll-back
  1311.    data will be preserved as long as the computer is on.  (If the ANSIPLUS
  1312.    shared code was loaded into EMS, it will share the same 64K area as scroll-
  1313.    back, reducing capacity by 30 percent.) If EMS memory is unavailable, then
  1314.    scroll-back will be stored in unused portions of the video RAM instead,
  1315.    cutting capacity to about 500 lines, which will be lost every time the
  1316.    display mode changes.  A configurable feature is provided that can prevent
  1317.    DOS EMS memory from being allocated for scroll-back and force any
  1318.    scroll-back data to reside in video RAM.
  1319.  
  1320.  * Under Windows, when a 386 Enhanced Mode DOS session starts, ANSIPLUS will
  1321.    try to allocate 64K of private expanded memory (EMS) for scroll-back (48K if
  1322.    ANSIPLUS shared code was loaded into EMS).  If the EMS is not available (for
  1323.    example, if the Windows PIF file for the application does not provide
  1324.    expanded memory), then video RAM will be used for scroll-back instead.
  1325.    ANSIPLUS provides a configurable feature that can prevent Windows EMS from
  1326.    being allocated for scroll-back and force any Windows DOS session
  1327.    scroll-back to reside in video RAM.  This is not recommended, however,
  1328.    because scroll-back in video RAM under Windows is not reliable when used
  1329.    with many Windows video drivers.
  1330.  
  1331.  * The recommended location for scroll-back data under Windows is expanded
  1332.    memory (EMS).  When EMS memory cannot be used, if you want to use
  1333.    scroll-back under Windows, you must enable a feature that allows using video
  1334.    RAM for scroll-back instead.  When running DOS applications in 386 Enhanced
  1335.    Mode, Windows will not maintain a full 32K of text mode RAM unless the
  1336.    Windows PIF file specifies "High Graphics" and "Retain Video Memory", and
  1337.    even then some Windows 3.1 video drivers (eg., 256-color ET-4000) will not
  1338.    work correctly when video RAM outside the visible screen is accessed,
  1339.    resulting in loss of scroll-back text or incomplete updating of the screen.
  1340.    You therefore should exercise caution before relying on this feature.  For
  1341.    further information, see "ANSIPLUS and Windows 3" starting on page 38.
  1342.  
  1343.  * Another feature only applies when video RAM is used to hold scroll-back
  1344.    data.  On systems running a suitable XMS driver such as QEMM or HIMEM,
  1345.    ANSIPLUS can allocate XMS memory to hold scroll-back data when changing
  1346.    video display modes or when running graphics mode applications (including
  1347.    Windows).  DOS sessions under Windows 3.1 can also use XMS memory for this
  1348.    purpose if they are run from a PIF file that provides at least 32K of XMS
  1349.    memory.  If the ANSIPLUS driver will be loaded into the High Memory Area
  1350.    (HMA) and is not sharing this area with DOS, then ANSIPLUS will preserve
  1351.    scroll-back in HMA instead of XMS memory, except when Windows is is running;
  1352.    otherwise, XMS memory will be used.  Because calls to some XMS drivers may
  1353.    require a lot of stack space, this feature should be disabled if you have
  1354.    reliability problems during display mode changes.
  1355.  
  1356.                                        20
  1357.  
  1358.  
  1359.  * ANSIPLUS captures for scroll-back all standard DOS output that is scrolled
  1360.    off the top of the screen or cleared from the screen.  An option is provided
  1361.    to capture full lines scrolled off the top by BIOS calls, as well as screens
  1362.    not containing DOS output, when they are cleared by BIOS call.
  1363.  
  1364.    Under Windows 3.1, when a DOS session is running in a window, some Windows
  1365.    video drivers (for example, the Microsoft Windows 3.1 VGA driver) trap BIOS
  1366.    scrolling calls completely and do not pass them through to the DOS virtual
  1367.    8086, making it impossible for ANSIPLUS to reliably capture lines scrolled
  1368.    by BIOS call when Windows is running.
  1369.  
  1370.  * Every time that video page 0 (the normal video page for all DOS output) is
  1371.    cleared, the first through last non-blank lines on the screen (plus one
  1372.    above and below) are captured for scroll-back.  When the second and higher
  1373.    video pages are cleared, they will not be saved unless lines have been
  1374.    scrolled off the top.  An option is provided to capture the higher video
  1375.    pages too when they are cleared.
  1376.  
  1377.  * When EMS memory is not used for scroll-back, ANSIPLUS stores captured screen
  1378.    lines in unused parts of the video RAM, with usage based on whether a
  1379.    display page has ever been selected for display.  Almost all text mode
  1380.    applications select a page before filling it with text, so ANSIPLUS should
  1381.    generally know what is used and what isn't.  However, a few applications,
  1382.    such as the Norton Utilities Version 7, appear to use the second video page
  1383.    without ever selecting it to save the original contents of the screen as the
  1384.    program starts up.  This action will wipe out any scroll-back data in the
  1385.    second page, and when the original screen is cleared by the program,
  1386.    scroll-back lines may be stored into the saved screen, causing gibberish to
  1387.    be restored to the screen when the program terminates.  To address this
  1388.    problem, a configurable feature is provided to protect the second video page
  1389.    from scroll-back storage.  However, when this feature is enabled, storage
  1390.    capacity for scroll-back in the video RAM will be reduced by one page.
  1391.  
  1392.  
  1393.  
  1394.  
  1395.  
  1396.  
  1397.  
  1398.  
  1399.  
  1400.  
  1401.  
  1402.  
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410.  
  1411.  
  1412.  
  1413.  
  1414.  
  1415.                                        21
  1416.  
  1417.  
  1418. Other Scrolling
  1419.  
  1420.  * ANSIPLUS uses the Scroll-Lock key as a hot key for freezing fast screen
  1421.    output and for activating screen scroll-back.  If these features are not
  1422.    desired, or to run those few applications that use Scroll-Lock for other
  1423.    purposes, the ANSIPLUS Scroll-Lock key can be disabled.  However, before you
  1424.    completely disable ANSIPLUS's Scroll-Lock key, try the Alt-Scroll-Lock
  1425.    combination instead (see next option).
  1426.  
  1427.  * An alternative hot key is Alt-Scroll-Lock.  If this key is enabled, the Alt
  1428.    key must be pressed simultaneously with the Scroll-Lock key to cause the
  1429.    ANSIPLUS Scroll-Lock function to be activated.  If it is disabled, the
  1430.    Scroll-Lock key will function with or without any other simultaneous key.
  1431.  
  1432.  * Smooth scrolling can gradually move the entire screen's text up so it can be
  1433.    read while it moves.  This feature can also be toggled on and off by the
  1434.    Shift-Scroll Lock key combination.  Smooth scrolling will appear
  1435.    unacceptably choppy on computers with lower powered CPUs and/or video
  1436.    controllers that cannot move a full screen of text in the video RAM
  1437.    completely during a vertical retrace.  If this occurs, the feature should
  1438.    not be used.
  1439.  
  1440.  * Smooth scrolling may interfere with certain Windows video display drivers
  1441.    when the DOS session is run in a window, not full screen.  For example, the
  1442.    256-color drivers for the Tseng ET4000 may leave undrawn black areas on the
  1443.    screen when scrolling occurs in a window while smooth scrolling is active.
  1444.    Because of this, smooth scrolling should be disabled under Windows unless
  1445.    you are certain that your video driver can handle it or that you will be
  1446.    running all DOS sessions full screen.
  1447.  
  1448.  * Because it takes time to smoothly scroll the screen, smooth scrolling of
  1449.    large amounts of screen output can significantly delay the computer.  An
  1450.    option is provided to increase the scrolling rate when the smooth scrolling
  1451.    operation is taking a significant proportion of the computer's time.  This
  1452.    can help, for example, to prevent data overruns when smooth scrolling is
  1453.    used with a communications program that scrolls the entire screen.
  1454.  
  1455.  * ANSIPLUS normally handles all text mode scrolling itself directly in the
  1456.    video display RAM.  This may confuse some other device drivers or TSRs that
  1457.    are installed and need to know when the screen is being scrolled.  In such
  1458.    cases, a feature can be enabled to cause BIOS calls for screen scrolling.
  1459.  
  1460.  
  1461.  
  1462.  
  1463.  
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.                                        22
  1475.  
  1476. IV.  USING ANSIPLUS
  1477.  
  1478. This chapter describes your controls over ANSIPLUS when it is running.  Five
  1479. subjects are covered: special keyboard functions; selecting and defining colors
  1480. with the SETCOLOR.exe utility program; controlling other ANSIPLUS features with
  1481. the SETAPLUS.exe utility program; creating batch files for configuring
  1482. applications; and editing ANSI-type escape sequence programs and files with the
  1483. ANSICOM.exe program.
  1484.  
  1485.                         SPECIAL KEYBOARD FUNCTIONS
  1486.  
  1487. ANSIPLUS uses special keyboard control to implement its scrolling functions.
  1488. To activate these, the Scroll-Lock (or Alt and Scroll-Lock) key is used as a
  1489. hot key toggle:
  1490.  
  1491.   Scroll-Lock       enables or disables screen scroll freezing and scroll-back
  1492.   Shift-Scroll-Lock enables or disables smooth scrolling
  1493.  
  1494. When your Scroll-Lock toggle is recognized by the computer, you will hear a
  1495. short tone.  When the screen is frozen by Scroll-Lock, (as indicated by the
  1496. light on enhanced keyboards), normal key input is disabled and the following
  1497. keys apply:
  1498.  
  1499.   Home          Go to the top of the lines saved for scroll-back
  1500.   PageUp        Scroll up one page
  1501.   Shift         Scroll up one-half page tab
  1502.   Up arrow      Scroll up one line
  1503.  
  1504.   End           Go to the bottom (i.e., the original screen display)
  1505.   PageDn        Scroll down one page
  1506.   Tab           Scroll down one-half page
  1507.   Down arrow    Scroll down one line
  1508.  
  1509.   Ctrl-Home     Delete all scroll-back older than that visible on the screen
  1510.   Ctrl-End      Delete all scroll-back visible on the screen or newer
  1511.  
  1512.   Left          View a lower numbered display page arrow
  1513.   Right         View a higher numbered display page arrow
  1514.  
  1515.   Escape        Cancel scroll lock, return to normal key processing
  1516.   Scroll lock   Cancel scroll lock, return to normal key processing
  1517.  
  1518. If you try to exceed the limit of travel up, down, left or right, a short low
  1519. pitched tone will sound.  If you enter any key other than those above, you will
  1520. hear a short warbling sound, Scroll Lock will be canceled, the screen will
  1521. return to its normal display, and the key will be passed back to the running
  1522. program.  If the screen was frozen during output, the PageDn, Tab and Down
  1523. arrow keys will allow one page, one-half page, and one line of additional
  1524. output, respectively, before freezing the screen again.  Pressing a shift key
  1525. will release the screen as long as the shift key is held down.
  1526.  
  1527. Another special key combination is used with the ANSIPLUS screen saver.  If the
  1528. screen saver is enabled, the following key combination may be used to blank the
  1529. screen without waiting the full blanking time:
  1530.  
  1531.   Alt-Ctrl-Scroll Lock      Blank the screen immediately
  1532.  
  1533.                                        23
  1534.  
  1535.                        SELECTING AND DEFINING COLORS
  1536.  
  1537. The SETCOLOR.exe utility program provides extensive control over colors for
  1538. your running system.  With this program, the user can view the current colors,
  1539. select colors for use, create and apply named color schemes, edit the color
  1540. palette, set the border color, and save and load color definitions.  Changes
  1541. made with SETCOLOR.exe are in effect only as long as your system is running.
  1542. To change the colors for system bootup, use the NEWAPLUS.exe program.
  1543. SETCOLOR.exe is executed by a command of the form:
  1544.  
  1545.         SETCOLOR <keyword> [<keyword> ...]
  1546.  
  1547. where each <keyword> selects a foreground or background color or other option.
  1548. If no <keyword> is supplied, you are presented with a menu of choices:
  1549.  
  1550.  * Color selection submenus let you choose from the current 16-color palette
  1551.    the screen colors that will be used for text foreground and background.
  1552.    ANSIPLUS maintains two sets of foreground and background colors: those that
  1553.    are currently on the screen, and default colors to be applied when an ANSI
  1554.    Set Graphics Rendition reset (i.e., Esc [0m) is detected.  You can control
  1555.    both color combinations from this sub-menu.
  1556.  
  1557.  * The color palette determines the precise colors you will see in 16 color
  1558.    video modes.  ANSIPLUS maintains two palettes: the current palette on the
  1559.    screen, and a default palette that is loaded when ANSIPLUS first starts and
  1560.    whenever the video display mode is changed.  You can control both palettes
  1561.    using this option, but unless you specifically set the default for each
  1562.    color you redefine, your colors will only apply until the next display mode
  1563.    change.
  1564.  
  1565.  * The border color is generated for the "overscan" region on the outside edges
  1566.    of the screen.  Again, ANSIPLUS maintains both a current border color and a
  1567.    default border color.  You can select any available color as border color,
  1568.    and can control both the current and default borders with this option.  As
  1569.    for palette changes, unless you specifically set the default border color,
  1570.    your border color will apply only until the next display mode change.
  1571.  
  1572. From the command line, colors may be selected by name or code number, where
  1573. codes 0-15 identify the 16 palette colors, 128-143 select foreground colors,
  1574. and 192-207 select background colors.  The relationship between color names and
  1575. code numbers is depicted in Table 4-1:
  1576.  
  1577.  
  1578.  
  1579.  
  1580.  
  1581.  
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.                                        24
  1593.  
  1594.        +--------------------------------------------------------+
  1595.        |                      Table 4-1                         |
  1596.        |                Color Names and Codes                   |
  1597.        +-------------------+--------+--------------+------------+
  1598.        |                   | Color  |  Foreground  | Background |
  1599.        | Color Name        |  Code  |     Code     |    Code    |
  1600.        +-------------------+--------+--------------+------------+
  1601.        | BLACK             |    0   |      128     |     192    |
  1602.        | DKGRAY            |    8   |      136     |     200    |
  1603.        | GRAY              |    7   |      135     |     199    |
  1604.        | WHITE             |   15   |      143     |     207    |
  1605.        | RED               |    9   |      137     |     201    |
  1606.        | DKRED             |    1   |      129     |     193    |
  1607.        | BROWN             |    3   |      131     |     195    |
  1608.        | YELLOW            |   11   |      139     |     203    |
  1609.        | GREEN             |    2   |      130     |     194    |
  1610.        | LTGREEN           |   10   |      138     |     202    |
  1611.        | CYAN              |    6   |      134     |     198    |
  1612.        | LTCYAN            |   14   |      142     |     206    |
  1613.        | BLUE              |    4   |      132     |     196    |
  1614.        | LTBLUE            |   12   |      140     |     204    |
  1615.        | MAGENTA or PURPLE |    5   |      133     |     197    |
  1616.        | LTMAGENTA or PINK |   13   |      141     |     205    |
  1617.        +-------------------+--------+--------------+------------+
  1618.  
  1619. In 256 color modes, you may also use 256-511 to select the foreground, 512-767
  1620. to select the background, or 0-255 after the BORDER keyword to select the
  1621. border color.
  1622.  
  1623. Several modifying keywords can assist the color selection:
  1624.  
  1625.     DARK, DIM or NORMAL for low intensity colors,
  1626.     LIGHT, BRIGHT or INTENSE for high intensity colors,
  1627.     FOREGROUND or FGD for foreground following,
  1628.     BACKGROUND,  BGD, or ON for background following,
  1629.     REVERSE to swap the current foreground and background,
  1630.     BORDER for border color selection following, or
  1631.     DEFAULT to select the current colors as the default colors.
  1632.  
  1633. If named colors or color codes 0-15 are specified without the foreground or
  1634. background keywords, then the first color is assumed to be the foreground and
  1635. the second the background.  Keywords may also be shortened; the first partial
  1636. match will be used.  Several examples may help to clarify these rules:
  1637.  
  1638.     SETCOLOR bgd blue                sets the background to dark blue
  1639.     SETCOLOR light cyan blue default default colors are light cyan foreground
  1640.                                      and blue background
  1641.     SETCOLOR 7,0                     gray foreground, black background
  1642.     SETCOLOR bright green on blue    high intensity green foreground, dark blue
  1643.                                      background
  1644.     SETCOLOR border cyan             set the border color to cyan
  1645.     SETCOLOR reverse                 reverses (swaps) the current foreground
  1646.                                      and background colors
  1647.     SETCOLOR rev                     reverses foreground and background
  1648.  
  1649.  
  1650.  
  1651.                                        25
  1652.  
  1653. Any unmatched keywords are checked against user-defined color schemes in a file
  1654. named SETCOLOR.sch.  This editable ASCII text file, which should be placed in
  1655. the same directory as the SETCOLOR.exe program, contains any number of named
  1656. color schemes of the user's choice.  User supplied color schemes are entered
  1657. into the file with a text editor, with each line entered in the form:
  1658.  
  1659.          <name> = <keyword> [<keyword> ...]
  1660.  
  1661. where <name> is the name of the user supplied color scheme, and <keyword> is
  1662. any valid SETCOLOR program keyword or other option.  Table 4-2 shows the
  1663. SETCOLOR.sch file included with ANSIPLUS as a sample:
  1664.  
  1665.                +---------------------------------------+
  1666.                |               Table 4-2               |
  1667.                |       Sample Color Schemes File       |
  1668.                +---------------------------------------+
  1669.                | evening = light cyan blue border 17   |
  1670.                | night = light blue black border 17    |
  1671.                | dawn = yellow cyan border 35          |
  1672.                | daylight = light blue white border 17 |
  1673.                | sun = bright red yellow border 46     |
  1674.                | sky = blue light blue border 17       |
  1675.                | forest = black green border 24        |
  1676.                | earth = yellow brown border 38        |
  1677.                | regal = pink purple border 21         |
  1678.                | candycane = dark red pink border white|
  1679.                | bw = gray black border dkgray         |
  1680.                +---------------------------------------+
  1681.  
  1682. A user color scheme may be specifically selected on the SETCOLOR command line
  1683. by preceding its name with the keyword SCHEME, for example:
  1684.  
  1685.   SETCOLOR SCHEME JOE selects a color scheme named JOE
  1686.  
  1687. The SETCOLOR program also includes keyword options to reset, edit, load and
  1688. save the current color configuration.  These include:
  1689.  
  1690.     RESET                 Install defaults as the current colors
  1691.     IBM or OEM            Install the OEM VGA/EGA palette as the current colors
  1692.     PALETTE               Edit the color definitions for the 16-color palette
  1693.     SAVEFILE <filename>   Save the current 16-color definitions in a file
  1694.     SAVE256 <filename>    Save the 256 VGA DAC color definitions in a file
  1695.     LOADFILE <filename>   Load a color definition file
  1696.     SAVECURRENT <file>    Save the 16 current colors as an executable program
  1697.     SAVEDEFAULT <file>    Save the 16 default colors as an executable program
  1698.     SAVEPROGRAM <file>    Save both the current and default colors as a program
  1699.  
  1700. The SAVEFILE, SAVE256 and LOADFILE keywords generate and load color definition
  1701. files.  The color definition files created by SAVEFILE contain 36 lines: 32
  1702. lines define the red, green and blue intensities for colors 0 to 15, both
  1703. current and default, and the other four define the current and default
  1704. foreground, background and border colors.  Files created by SAVE256 contain 512
  1705. lines: 256 for the default DACs and 256 for the current DACs.  Table 4-3 is a
  1706. sample of lines from a SAVEFILE color definition file.
  1707.  
  1708.  
  1709.  
  1710.                                        26
  1711.                       +------------------------------+
  1712.                       |          Table 4-3           |
  1713.                       | Sample Color Definition File |
  1714.                       +------------------------------+
  1715.                       |      Default = 142,196       |
  1716.                       |      DBorder = 0,81,162      |
  1717.                       |     DColor 2 = 16,162,81     |
  1718.                       |     DColor 3 = 113,65,16     |
  1719.                       |      DColor 4 = 0,0,105      |
  1720.                       |      DColor 5 = 97,0,97      |
  1721.                       |      Current = 135,192       |
  1722.                       |        Border = 0,0,0        |
  1723.                       |      Color 2 = 0,170,0       |
  1724.                       |     Color 3 = 0,170,170      |
  1725.                       |      Color 4 = 0,0,170       |
  1726.                       |     Color 5 = 170,0,170      |
  1727.                       +------------------------------+
  1728.  
  1729. Users are free to edit color definition files to create their own colors, to
  1730. delete any lines from them, or to put the lines in any order except that all
  1731. default color definitions must precede all current color definitions in the
  1732. file.  If no file name is given for a LOADFILE, SAVEFILE or SAVE256 request,
  1733. the file name SETCOLOR.def in the current directory will be used.  LOADFILE
  1734. checks the system PATH for color definition files to be loaded, so any commonly
  1735. used color files can reside in a directory on the PATH.
  1736.  
  1737. The SAVECURRENT, SAVEDEFAULT, and SAVEPROGRAM keyword options create executable
  1738. ".com" files that can be called later by name to install colors.  These
  1739. programs can also be edited by the ANSICOM.exe utility program.
  1740.  
  1741. To provide additional user control over 16-color programs, such as DBASE III or
  1742. DOS 5.0 EDIT.com, that set their own palettes or border colors but do not
  1743. restore the palette on completion, or to simply force a color scheme on a
  1744. program that defines its own, ANSIPLUS can lock the color palette, preventing a
  1745. program from loading the PAL/DAC and border color registers by BIOS calls.
  1746. This feature is controlled by two SETCOLOR options:
  1747.  
  1748.   LOCKPAL      enable locked color palette, ignore BIOS calls defining colors
  1749.   UNLOCKPAL    disable locked color palette, allow programs to define colors
  1750.  
  1751. Palette locking should only be used when all other means of control fail.  It
  1752. is intended to be invoked as part of batch files that execute applications to
  1753. be controlled, locking the palette before the program runs, and unlocking it
  1754. after it completes.  The feature should never be enabled all of the time
  1755. because it will keep well behaved programs from making color changes too.
  1756.  
  1757. The SETCOLOR program also controls ANSIPLUS VGA monochrome monitor emulation.
  1758. Two keywords enable or disable this feature:
  1759.  
  1760.   MONOCHROME   begins VGA monochrome monitor emulation; and
  1761.   COLOR        ends VGA monochrome monitor emulation and restores colors.
  1762.  
  1763. And finally, SETCOLOR provides three reporting options:
  1764.  
  1765.   SHOW         displays the 16 current colors in a band across the screen
  1766.   HELP         gives a brief description of how to use the SETCOLOR program
  1767.   SCHEME HELP  lists the available color schemes in file SETCOLOR.sch
  1768.  
  1769.                                        27
  1770.  
  1771.                     CONTROLLING OTHER ANSIPLUS FEATURES
  1772.  
  1773. The SETAPLUS.exe utility program is used to enable and disable various ANSIPLUS
  1774. features while the system is running.  It can also be used to set the video
  1775. display mode, character height, video page and graphics mode text treatment
  1776. options, to define or list key reassignments, or to define the Control-G beep
  1777. tone.  Changes made with SETAPLUS.exe are in effect only as long as your system
  1778. is running.  To change ANSIPLUS features for system bootup, use the NEWAPLUS
  1779. program.  SETAPLUS.exe is executed by a command of the form:
  1780.  
  1781.         SETAPLUS <keyword> [<keyword> ...]
  1782.  
  1783. where each <keyword> selects an ANSIPLUS feature or other option.  As for the
  1784. SETCOLOR.exe utility, if no <keyword> is supplied, you are presented with a
  1785. menu of choices.  These choices are shown in Table 4-4 below.
  1786.  
  1787.    +------------------------------------------------------------------------+
  1788.    |                             Table 4-4                                  |
  1789.    |                     SETAPLUS Main Menu Options                         |
  1790.    +-----------+------------------------------------------------------------+
  1791.    | Report    | Display current ANSIPLUS optional feature settings         |
  1792.    | Mode      | Set the video display mode                                 |
  1793.    | Height    | Set the displayed character height                         |
  1794.    | Tone      | Control-G beep tone generation options                     |
  1795.    | Keyboard  | Caps Lock, Ctrl-C and key read-ahead options               |
  1796.    | Assign    | Key reassignment enable/disable option and key definition  |
  1797.    | Color     | Mode set color, blink, bright key echo and VGA mono options|
  1798.    | Display   | Screen saver, graphics mode cursor and retrace wait options|
  1799.    | Scrollback| Scroll-back options                                        |
  1800.    | Other     | Scroll-Lock and smooth scrolling options                   |
  1801.    | Undo      | Undo all feature changes since starting the main menu      |
  1802.    | Quit      | Quit and return to DOS                                     |
  1803.    +-----------+------------------------------------------------------------+
  1804.  
  1805. From the SETAPLUS command line, you control each ANSIPLUS feature with its own
  1806. selection keywords.  These selectors are shown in Table 4-5 on page 29.  When
  1807. used in combination with the following keywords, each controllable feature can
  1808. be enabled and disabled easily:
  1809.  
  1810.     ON, YES, or TRUE to enable the preceding feature,
  1811.     ENABLE to enable all following listed features,
  1812.     OFF, NO, or FALSE to disable the preceding feature,
  1813.     DISABLE to disable all following listed features, and
  1814.     RESET to set all features to their default values.
  1815.  
  1816. The following examples illustrate use of the SETAPLUS command line to control
  1817. ANSIPLUS features:
  1818.  
  1819.     SETAPLUS bright off              Disable bright key echo
  1820.     SETAPLUS enable capsunlock saver Enable screen saver and Caps reset on
  1821.                                      Shift-alpha
  1822.     SETAPLUS reset                   Reset all features to their default status
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.                                        28
  1829.  
  1830.  
  1831.  
  1832.  
  1833.         +-------------------------------------------------------------------+
  1834.         |                           Table 4-5                               |
  1835.         |              SETAPLUS Feature Selection Keywords                  |
  1836.         +------------+------------------------------------------------------+
  1837.         | SETCOLORS  | Install default (ANSIPLUS) colors on mode sets       |
  1838.         | DOSSET256  | Load default colors on DOS 256-color mode sets       |
  1839.         | WINSET256  | Load default colors on Windows 256-color mode sets   |
  1840.         | NOBLINK    | Enable 16-color text mode background (disable blink) |
  1841.         | BRIGHT     | Highlight echoed keys (bright key echo)              |
  1842.         | LOCKPAL    | Prevent palette/DAC color changes by programs        |
  1843.         | MONOCHROME | VGA monochrome monitor emulation                     |
  1844.         | SAVER      | Enable screen saver (blanker)                        |
  1845.         | READ60H    | Read key controller scan codes in screen saver       |
  1846.         | MSMOUSE    | Use MS mouse Int 33h polling in screen saver         |
  1847.         | PS2MOUSE   | Use PS/2 Int 74h mouse event interrupts in saver     |
  1848.         | PSEUDOCURS | Generate pseudo-cursor in VGA/EGA graphics modes     |
  1849.         | CURSOR256  | Generate pseudo-cursor in 256-color graphics modes   |
  1850.         | TTYTRAP    | Trap ANSI escape sequences in BIOS Write TTY         |
  1851.         | RETRACE    | Wait for retrace before setting palette registers    |
  1852.         |            |                                                      |
  1853.         | CAPSUNLOCK | Unlock Caps Lock with shift/letter key combination   |
  1854.         | CAPSRELOCK | Relock Caps with carriage return after shift/letter  |
  1855.         | CTRLC      | Generate Control-Break when Control-C is entered     |
  1856.         | NDLAST     | Read last key in buffer with non-destructive input   |
  1857.         | STACK      | Enable key stacking                                  |
  1858.         | KEYASSIGN  | Enable ANSI key reassignment                         |
  1859.         | BIOSASSIGN | Apply key reassignment at BIOS Int 16h level         |
  1860.         | NODEFKEY   | Prevent ANSI key reassignment redefinition           |
  1861.         | BEEP       | Use ANSIPLUS Control-G beep tone generator           |
  1862.         | WINBEEP    | Allow ANSIPLUS beep tone under Windows               |
  1863.         |            |                                                      |
  1864.         | LOCK       | Allow Scroll Lock key to freeze screen               |
  1865.         | ALTLOCK    | Require Alt-Scroll-Lock when freezing screen         |
  1866.         | SCROLLBACK | Enable scroll-back of lines scrolled off top         |
  1867.         | DOSEMS     | Use expanded memory for DOS scroll-back              |
  1868.         | WINEMS     | Use expanded memory for Windows scroll-back          |
  1869.         | WINVRAM    | Allow video RAM for Windows scroll-back              |
  1870.         | XMSBACK    | Preserve scroll-back data using XMS or HMA memory    |
  1871.         | BIOSBACK   | Capture lines scrolled by BIOS call                  |
  1872.         | CLSBACK    | Capture erased pages never scrolled up               |
  1873.         | PAGEPROTECT| Protect 2nd display page from scroll-back storage    |
  1874.         | SMOOTH     | Enable smooth scrolling                              |
  1875.         | WINSMOOTH  | Allow smooth scrolling under Windows                 |
  1876.         | SPEEDUP    | Speed up smooth scroll when delaying computer        |
  1877.         | BIOSCROLL  | Use BIOS calls for text mode screen scrolling        |
  1878.         +------------+------------------------------------------------------+
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.                                        29
  1888.  
  1889.  
  1890. Other command line options include:
  1891.  
  1892.      MODE <decimal mode number> to set the video display mode,
  1893.      HEIGHT <height> to set the text character height,
  1894.      PAGE <page> to set the video page,
  1895.      KEYDEF to enter key reassignment definitions from the keyboard,
  1896.      LISTKEYS to list all current key reassignments,
  1897.      SAVEKEYS to save current key reassignments in a file,
  1898.      LOADKEYS <file name>  to load key reassignment definitions from a file,
  1899.      KEYSTACK <text> to add keys or delays to the keyboard buffer,
  1900.      RATE <char/sec> to set the keyboard "typematic" repeat rate,
  1901.      DELAY <quartersecs> to set the typematic key delay,
  1902.      SAVESCROLLTEXT <file name> to save scrollback to a file (text only),
  1903.      SAVESCROLLANSI <file name> to save scrollback with ANSI color control,
  1904.      BLANKTIME <minutes> to set the screen saver blanking time,
  1905.      TONE <frequency, duration list> to set the Control-G beep tone,
  1906.      TEXT or TREATMENT to reset graphics mode text treatments,
  1907.      SHADOW, BOLD,  ITALICS, UNDERLINE or OUTLINE to enable text treatments,
  1908.      STATUS to report the current video mode, number of colors, etc.,
  1909.      FEATURES to report the settings of all ANSIPLUS features,
  1910.      REPORT to show both STATUS and FEATURES, and
  1911.      HELP to show all keyword options.
  1912.  
  1913. Two keyword options are provided for managing the interrupt vectors used by
  1914. ANSIPLUS:
  1915.  
  1916.       INTERRUPT      Displays, to the extent possible, the chain of programs
  1917.                      attached to each following selected interrupt
  1918.       LINK           Relinks ANSIPLUS to the selected interrupt(s)
  1919.  
  1920. You may specify interrupt selectors as either hexadecimal numbers or special
  1921. keywords:
  1922.  
  1923.       KEYEVENT       Interrupt 09h Key Event
  1924.       VIDEO          Interrupt 10h Video
  1925.       SYSTEMSERVICE  Interrupt 15h System Services
  1926.       KEYREQUEST     Interrupt 16h Keyboard Request
  1927.       KEYBREAK       Interrupt 1Bh Keyboard Break
  1928.       TIMERTICK      Interrupt 1Ch User Timer Tick
  1929.       DOSTTY         Interrupt 29h DOS Fast TTY Output
  1930.       MULTIPLEX      Interrupt 2Fh Multiplex, and
  1931.       PS2MOUSE       Interrupt 74h PS/2 Mouse Event
  1932.  
  1933. For example, SETAPLUS INTERRUPT 2F will list the programs attached to the DOS
  1934. Int 2Fh Multiplex interrupt.
  1935.  
  1936.  
  1937.  
  1938.  
  1939.  
  1940.  
  1941.  
  1942.  
  1943.  
  1944.  
  1945.  
  1946.                                        30
  1947.  
  1948.  
  1949. All the features controlled by SETAPLUS are described in Chapter 3 under
  1950. "Changing the ANSIPLUS Startup Configuration", starting on page 13, except for
  1951. three:
  1952.  
  1953.  * To reassign keys, use the KEYDEF keyword.  You will be prompted for the key
  1954.    to reassign; after that, you type in the corresponding key reassignment, and
  1955.    terminate it with the End key.
  1956.  
  1957.  * To add keys to the keyboard buffer, use the keyword KEYSTACK, followed by
  1958.    any number of quoted strings, key scan and character codes (scan code times
  1959.    256 plus ASCII character code), or time delay directives (/Wnnn for timer
  1960.    ticks, or /Dnnn for milliseconds).  The following example enters "Dir",
  1961.    waits one second, then enters " *.*" and a carriage return:
  1962.  
  1963.      SETAPLUS KEYSTACK "Dir" /W18 " *.*" 13
  1964.  
  1965.  * To define the beep sound from the command line, use SETAPLUS and follow the
  1966.    keyword TONE with zero, one or more frequencies in Hertz and durations in
  1967.    milliseconds.  For example,
  1968.  
  1969.      SETAPLUS TONE            installs the default 880hz 385ms tone, and
  1970.      SETAPLUS TONE 1397,110,1047,165    defines a two-tone Control-G beep.
  1971.  
  1972.    To define the beep sound from the SETAPLUS main menu, select Tone Definition
  1973.    and run through the feature options.
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.                                        31
  2006.  
  2007.                         CREATING APPLICATION BATCH FILES
  2008.  
  2009. Almost all DOS applications should run without change when ANSIPLUS is
  2010. installed.  However, in a few cases it may be desirable to create a batch file
  2011. that prepares the system for an application, runs it, and then cleans up
  2012. afterward.  There are three reasons for creating these application batch files:
  2013.  
  2014.  * To restore the normal DOS command shell video mode and colors after the
  2015.    program ends;
  2016.  
  2017.  * To install a color palette for the program to use when it runs; or
  2018.  
  2019.  * To enable or disable ANSIPLUS features that conflict with the program.
  2020.  
  2021. Many DOS application programs do not completely restore the video state on
  2022. completion.  The common problems seen (with examples in parentheses) are:
  2023.  
  2024.  * The program sets the color palette, usually to the OEM default, but doesn't
  2025.    restore it on completion (DOS 5.0 EDIT.com, DBASE III).
  2026.  
  2027.  * The program sets the border color, but doesn't restore it, or sets it to
  2028.    black on completion (DBASE III).
  2029.  
  2030.  * The program turns blink on, but doesn't restore it on completion (DOS 5.0
  2031.    EDIT.com, DBASE III).
  2032.  
  2033.  * The program selects a video mode, but doesn't restore the original one on
  2034.    completion (DOS 5.0 EDIT.com, DBASE III).
  2035.  
  2036.  * The program selects a video mode and restores it on completion, but doesn't
  2037.    restore the text height if it is not standard for the video mode (Quattro
  2038.    Pro 3.0 and others).
  2039.  
  2040. There are four simple options for restoring the ANSIPLUS video mode and colors
  2041. after running an application that sets its own mode, palette or border color:
  2042.  
  2043.  * The first option can be used to restore only the border color after an
  2044.    application has run.  Suppose the border color is normally palette code 17,
  2045.    then the following batch file will set the border after the application (in
  2046.    this example, DOS EDIT.com) runs:
  2047.  
  2048.         @ECHO OFF
  2049.         C:\DOS\EDIT.com %1 %2 %3 %4 %5 %6 %7 %8 %9
  2050.         SETCOLOR BORDER 17
  2051.  
  2052.  * The second option will restore the entire default ANSIPLUS palette and
  2053.    border color after the application runs:
  2054.  
  2055.         @ECHO OFF
  2056.         C:\DOS\EDIT.com %1 %2 %3 %4 %5 %6 %7 %8 %9
  2057.         SETCOLOR RESET
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.                                        32
  2065.  
  2066.  
  2067.  * The third option requires creating a small .com file that will load an
  2068.    entire color scheme.  This can be done at any time by hitting the letter "S"
  2069.    from the SETCOLOR.exe palette definition screen, or it can be done from the
  2070.    DOS command level with a command like:
  2071.  
  2072.         SETCOLOR SAVEPROGRAM MYCOLORS
  2073.  
  2074.    This will create a program called MYCOLORS.com, which loads the 16-color
  2075.    palette and border colors that were in effect when the program was created.
  2076.    The batch file for the application can then use this program to restore the
  2077.    color scheme on completion:
  2078.  
  2079.         @ECHO OFF
  2080.         C:\DOS\EDIT.com %1 %2 %3 %4 %5 %6 %7 %8 %9
  2081.         MYCOLORS
  2082.  
  2083.  * The fourth option saves and restores the video mode, character height and
  2084.    foreground/background color selection, and loads the ANSIPLUS default
  2085.    palette after the application completes.  The batch file uses the
  2086.    PUSHVID.com and POPVID.com programs provided with ANSIPLUS:
  2087.  
  2088.         @ECHO OFF
  2089.         PUSHVID
  2090.         C:\DOS\EDIT.com %1 %2 %3 %4 %5 %6 %7 %8 %9
  2091.         POPVID
  2092.  
  2093.    This is the best technique to use when running DOS in a text mode other than
  2094.    25 lines by 80 columns, because it will restore both the video display mode
  2095.    and text height.
  2096.  
  2097. The options for controlling colors used by applications depend on whether
  2098. custom colors are desired for the application and whether the application loads
  2099. its own palette:
  2100.  
  2101.  * If the application ordinarily uses ANSIPLUS's colors when it runs, then it
  2102.    will use any ANSIPLUS color palette in effect when it begins execution, so a
  2103.    .com color scheme file saved from the SETCOLOR.exe palette definition
  2104.    screen, or by a SETCOLOR SAVEPROGRAM APPCOLOR command, can be used to load a
  2105.    custom color scheme before running the application:
  2106.  
  2107.         @ECHO OFF
  2108.         APPCOLOR
  2109.         <application> %1 %2 %3 %4 %5 %6 %7 %8 %9
  2110.         MYCOLORS
  2111.  
  2112.    Because most DOS application programs select a video mode when they start
  2113.    up, be sure that the color scheme saved in APPCOLOR.com is saved as a
  2114.    default color scheme.
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.                                        33
  2124.  
  2125.  
  2126.  * To use the ANSIPLUS palette for an application that installs its own
  2127.    palette, the palette must be locked before the program starts and unlocked
  2128.    after it completes:
  2129.  
  2130.         @ECHO OFF
  2131.         LOCKPAL
  2132.         <application> %1 %2 %3 %4 %5 %6 %7 %8 %9
  2133.         UNLOKPAL
  2134.  
  2135.    Warning: Palette locking should only be used when all other means of control
  2136.    fail.  The feature should never be left enabled all of the time because it
  2137.    will keep well behaved programs from making any color changes.
  2138.  
  2139.  * To use custom colors for an application that wants to install its own
  2140.    palette, the custom colors are loaded before the palette is locked:
  2141.  
  2142.         @ECHO OFF
  2143.         APPCOLOR
  2144.         LOCKPAL
  2145.         <application> %1 %2 %3 %4 %5 %6 %7 %8 %9
  2146.         UNLOKPAL
  2147.         MYCOLORS
  2148.  
  2149. In the event of a conflict between an ANSIPLUS feature and an application, the
  2150. feature can be disabled before running the application and enabled again after
  2151. it completes.  For example, the following batch file turns off the screen saver
  2152. while running an application:
  2153.  
  2154.         @ECHO OFF
  2155.         SETAPLUS DISABLE SAVER
  2156.         <application> %1 %2 %3 %4 %5 %6 %7 %8 %9
  2157.         SETAPLUS ENABLE SAVER
  2158.  
  2159.  
  2160.  
  2161.  
  2162.  
  2163.  
  2164.  
  2165.  
  2166.  
  2167.  
  2168.  
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.                                        34
  2183.  
  2184.                      EDITING ANSI ESCAPE SEQUENCE PROGRAMS
  2185.  
  2186. After using ANSIPLUS for a while, the user will find it desirable to create
  2187. short programs for frequently used video modes, color selections or
  2188. definitions, key reassignments, etc.  The ANSICOM.exe utility program provides
  2189. this facility: with it, the user can create and edit small executable ".com"
  2190. files or small printable text files that contain ANSI escape sequences.
  2191. ANSICOM is executed with the following command:
  2192.  
  2193.      ANSICOM <filename>
  2194.  
  2195. where <filename> is the name of the file to be edited.  Your file to edit is
  2196. selected using the following rules:
  2197.  
  2198.  * If no file name is supplied, you will be presented with a menu of ".com"
  2199.    files to select from.
  2200.  
  2201.  * If a file name is supplied, and it does not include a file type, a file type
  2202.    of ".com" is assumed.
  2203.  
  2204.  * When an existing ".com" file is edited, it is first checked for program code
  2205.    that outputs the ANSI escape sequences.  If this is not found, ANSICOM will
  2206.    refuse to edit the file.
  2207.  
  2208.  * If the file to be edited is not a ".com" file, then it is assumed to be a
  2209.    non-executable printable text file.
  2210.  
  2211.  * If the named file is not found (including a search of the system PATH),
  2212.    ANSICOM will ask if a new file is to be created.
  2213.  
  2214. Once the file has been properly identified, a full-screen editing display is
  2215. presented, and you can go to work.  Use the F1 key for context sensitive help.
  2216.  
  2217. The ANSICOM full screen editing display automatically parses the user's entries
  2218. and identifies the kinds of ANSIPLUS escape sequences entered, including
  2219. incomplete escape sequences.  ANSICOM will not allow the user to save a file
  2220. containing an incomplete escape sequence.  Beyond that, it is the user's
  2221. responsibility to be sure that the escape sequences entered will do what he
  2222. wants.
  2223.  
  2224.  
  2225.  
  2226.  
  2227.  
  2228.  
  2229.  
  2230.  
  2231.  
  2232.  
  2233.  
  2234.  
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.                                        35
  2242.  
  2243.  
  2244. V.   ANSIPLUS ESCAPE SEQUENCES
  2245.  
  2246. This chapter lists and briefly describes each of the "ANSI" Escape sequences
  2247. recognized by ANSIPLUS.  They are described in detail in the printed ANSIPLUS
  2248. manual.  In the table, "#" represents any numeric parameter and "Esc" is the
  2249. Escape character (decimal 27, hexadecimal 1Bh):
  2250.  
  2251.  
  2252.      Control Sequence    Description
  2253.      ----------------    -----------
  2254.  
  2255.                    DISPLAY MODE AND CHARACTER SET
  2256.  
  2257.      Esc [#;#h           Set video display mode
  2258.  
  2259.      Esc [#;#l           Reset video display mode
  2260.  
  2261.      Esc [!#t            Select character set height: 8, 14 or 16 scan lines
  2262.  
  2263.      Esc [!#;...;#e      Select graphics mode text treatment options: bold,
  2264.                          underline, slant, shadow, outline, or reverse
  2265.  
  2266.      Esc [!#v            Select video page
  2267.  
  2268.  
  2269.                          CURSOR POSITIONING
  2270.  
  2271.      Esc [#;#H           Set cursor position
  2272.  
  2273.      Esc [#;#f           Set cursor position
  2274.  
  2275.      Esc [#A             Move cursor up
  2276.  
  2277.      Esc [#B             Move cursor down
  2278.  
  2279.      Esc [#C             Move cursor right
  2280.  
  2281.      Esc [#D             Move cursor left
  2282.  
  2283.      Esc [#s             Save cursor position, video mode, video page or colors
  2284.  
  2285.      Esc [#u             Restore cursor position, video mode, page or colors
  2286.  
  2287.  
  2288.                    COLOR SELECTION AND DEFINITION
  2289.  
  2290.      Esc [#;...;#m       Select current color attributes for output characters
  2291.  
  2292.      Esc [!#;#;#;#;#c    Define colors available, select palette, set up color
  2293.                          blinking, restore color definitions or palette
  2294.  
  2295.  
  2296.  
  2297.  
  2298.  
  2299.  
  2300.                                        36
  2301.  
  2302.  
  2303.  
  2304.      Control Sequence    Description
  2305.      ----------------    -----------
  2306.  
  2307.                       ERASE, INSERT AND DELETE
  2308.  
  2309.      Esc [#;#J           Clear the screen
  2310.  
  2311.      Esc [#;#;#K         Clear a line
  2312.  
  2313.      Esc [#;#L           Insert lines on the screen or in a line range
  2314.  
  2315.      Esc [#;#M           Delete lines from the screen or a line range
  2316.  
  2317.      Esc [#;#@           Insert characters on a line or a column range
  2318.  
  2319.      Esc [#;#P           Delete characters from a line or a column range
  2320.  
  2321.  
  2322.                      DRIVER STATUS AND CONTROL
  2323.  
  2324.      Esc [#;#n           Query ANSIPLUS status: cursor position, current color
  2325.                          selection, video mode and number of colors, screen and
  2326.                          character dimensions, color definitions, feature
  2327.                          settings, tone definition, key reassignment, etc.
  2328.  
  2329.      Esc [!#;...;#d      Enable or disable ANSIPLUS driver feature settings
  2330.  
  2331.      Esc [!#;...;#g      Define the Control-G beep tone
  2332.  
  2333.      Esc [#;...;#p       Define key reassignment (accepts quoted strings)
  2334.  
  2335.      Esc [!#;...;#k      Add keys to keyboard buffer (accepts quoted strings)
  2336.  
  2337.  
  2338. Besides supporting all the escape sequences accepted by the MS-DOS ANSI.sys
  2339. driver, ANSIPLUS accepts additional parameters for many, and includes several
  2340. entirely new control functions. See Chapter 6, Technical Notes, for differences
  2341. between ANSIPLUS and the ANSI.sys driver.
  2342.  
  2343.  
  2344.  
  2345.  
  2346.  
  2347.  
  2348.  
  2349.  
  2350.  
  2351.  
  2352.  
  2353.  
  2354.  
  2355.  
  2356.  
  2357.  
  2358.  
  2359.                                        37
  2360.  
  2361. VI.  TECHNICAL NOTES
  2362.  
  2363.                              ANSIPLUS AND WINDOWS 3
  2364.  
  2365. Users of Windows 3.0 and 3.1 should consider using ANSIPLUS as well.  The
  2366. ANSIPLUS driver works well with DOS programs under Windows 3, and there are
  2367. advantages to using it in Windows 386 Enhanced Mode.  Because ANSIPLUS is a CON
  2368. driver, local copies of it are included in each Windows 386 Enhanced Mode
  2369. virtual 8086.  This means that all the ANSIPLUS internal state variables, and
  2370. those of its integrated console features, will be local to each virtual 8086,
  2371. so there is no way they can interfere with each other.  This section discusses
  2372. how to work around the limitations imposed on ANSIPLUS DOS sessions by Windows
  2373. or by Windows in combination with other software.
  2374.  
  2375.  
  2376. Loading Options
  2377.  
  2378. With DOS 5.0 or later, or with an XMS memory manager such as QEMM (using
  2379. LOADHI) or 386MAX, ANSIPLUS can be loaded into upper memory blocks above 640K
  2380. to provide a larger program area below 640K.  All ANSIPLUS memory loading
  2381. options are compatible with Windows, with the following exceptions:
  2382.  
  2383.  * When the ANSIPLUS shared code has been loaded into expanded memory, Version
  2384.    6 of 386MAX (and possibly other versions) will refuse to let Windows start
  2385.    in 386 Enhanced mode.  The 386MAX memory manager complains that expanded
  2386.    memory cache software is running.  This limitation does not exist for the
  2387.    EMM386 or QEMM386 memory managers.  To get Windows to run with ANSIPLUS and
  2388.    386MAX, load the ANSIPLUS driver into XMS upper memory, HMA, or low memory
  2389.    instead.
  2390.  
  2391.  * If Windows 3.0 (not 3.1!) will be run in 386 Enhanced mode, it is strongly
  2392.    recommended that the entire ANSIPLUS driver (or any other ANSI driver) not
  2393.    be loaded into high memory by DEVICEHIGH or equivalent, and that ANSIPLUS
  2394.    load itself high instead.  This is because Windows 3.0 does not localize the
  2395.    XMS upper memory block area above 640K for its virtual 8086's, and so only
  2396.    one global copy of ANSIPLUS would be shared among all virtual machines.
  2397.    This can cause trouble: if, for example, a program in one window selects
  2398.    colors, then those colors would also be in force for all DOS programs in
  2399.    other windows!
  2400.  
  2401.  
  2402. Smooth Scrolling
  2403.  
  2404. Smooth scrolling should operate correctly for full screen DOS programs under
  2405. Windows.  However, when a DOS session is run in a window, smooth scrolling may
  2406. interfere with some Windows video display drivers.  For example, the 256-color
  2407. drivers for the Tseng ET4000 may leave undrawn black areas on the screen when
  2408. scrolling occurs in a window while smooth scrolling is active.  Because of
  2409. this, smooth scrolling should be disabled under Windows unless you are certain
  2410. that your video driver can tolerate the direct port access to the video
  2411. controller required for smooth scrolling, or that all DOS sessions will be run
  2412. full screen.
  2413.  
  2414.  
  2415.  
  2416.  
  2417.  
  2418.                                        38
  2419.  
  2420.  
  2421. Scroll-Back
  2422.  
  2423. The recommended storage location for scroll-back data under Windows is expanded
  2424. memory (EMS).  Use of EMS for scroll-back instead of video RAM (as was done by
  2425. ANSIPLUS drivers before Release 3.10) eliminates compatibility problems with
  2426. Windows video drivers apparently caused by memory accesses to video RAM not on
  2427. the visible part of the virtual screen.
  2428.  
  2429. The standard Windows 3.1 DOSPRMPT.pif and _DEFAULT.pif files both allow
  2430. programs to access EMS memory.  A sample PIF file with suggested PIF settings
  2431. (for the MS-DOS prompt) is included with the ANSIPLUS package in the file
  2432. APLUS.pif.  These settings are recommended, but not necessary, for all DOS
  2433. applications that depend on scroll-back under Windows.
  2434.  
  2435. Under Windows, when a 386 Enhanced Mode DOS session starts, ANSIPLUS will try
  2436. to allocate 64K of private expanded memory (EMS) for scroll-back (48K if
  2437. ANSIPLUS shared code was loaded into EMS).  If the EMS is not available (for
  2438. example, if the Windows PIF file for the application does not provide expanded
  2439. memory), then the driver will attempt to use video RAM for scroll-back instead,
  2440. if that option has been specifically enabled.  ANSIPLUS provides a configurable
  2441. feature that can prevent Windows EMS from being allocated for scroll-back and
  2442. force any Windows DOS session scroll-back to reside in video RAM.  This is not
  2443. advised, however, because scroll-back in video RAM under Windows is not
  2444. reliable when used with many Windows video drivers.
  2445.  
  2446. Using video RAM for scroll-back under Windows has problems, particularly for
  2447. DOS applications run in a window.  One difficulty is that when a DOS
  2448. application is run in 386 Enhanced Mode, Windows will not maintain a full 32K
  2449. of text mode RAM unless the Windows PIF file specifies "High Graphics" and
  2450. "Retain Video Memory".  If these PIF settings are not used, then the first time
  2451. that ANSIPLUS needs to access the scroll-back storage area, Windows may present
  2452. a message claiming that there is not enough memory for the application to
  2453. correctly display information.  If this happens, just click on OK, then hit
  2454. Alt-Enter to switch to a full screen display and proceed.  Scroll-back data
  2455. will also likely be lost when the focus is switched from task to task, as with
  2456. the Alt-Tab key, or when changing display modes.  Even with these PIF settings,
  2457. some Windows 3.1 video drivers (eg., 256-color ET-4000) will not work correctly
  2458. when video RAM outside the visible screen is accessed, resulting in loss of
  2459. scroll-back text or incomplete updating of the screen.  You therefore should
  2460. exercise caution before relying on video RAM for scroll-back under Windows.
  2461.  
  2462. Starting with ANSIPLUS Release 3.1, scroll-back lines are captured under
  2463. Windows as they are completed, rather than as they scroll off the top of the
  2464. screen.  This change was necessary because some Windows video drivers (eg.,
  2465. Microsoft VGA) trap BIOS scrolling requests completely and do not pass them
  2466. through to the DOS virtual 8086 when running a DOS session in a window.  This
  2467. makes it impossible for ANSIPLUS to know when the screen has scrolled if a BIOS
  2468. call was used to do it.  Some important DOS programs now mix DOS output and
  2469. BIOS calls for scrolling (eg., 4DOS 5.0 and NDOS 8.0 when displaying
  2470. multi-colored directories).
  2471.  
  2472.  
  2473.  
  2474.  
  2475.  
  2476.  
  2477.                                        39
  2478.  
  2479.  
  2480. Color Palettes
  2481.  
  2482. Full screen DOS programs in Windows will use the same colors that they do when
  2483. run under DOS.  When the same program is run in a window, its 16-color palette
  2484. will be determined entirely by Windows and the Windows video driver.  ANSIPLUS
  2485. will have no control over the palette when running in a window.
  2486.  
  2487. With earlier versions of ANSIPLUS under Windows, when a DOS session was run in
  2488. a window using Microsoft's 16-color VGA video driver, only 13 distinct colors
  2489. were available on the ANSIPLUS 16 color palette (ie., 3 colors were duplicated:
  2490. brown was the same as dark red, light blue was the same as light cyan, and pink
  2491. was white.) Other video drivers do not seem to have this problem because they
  2492. do not try to adapt to color palette settings made by programs running in a
  2493. window.
  2494.  
  2495. Starting with ANSIPLUS Release 3.10, the standard ANSIPLUS palette has been
  2496. adjusted slightly to allow brown to show as dark yellow and light blue as light
  2497. blue under the Microsoft VGA driver.  Users of the Microsoft VGA driver can
  2498. convert pink to light magenta by running the WINVGA16.com program provided with
  2499. ANSIPLUS.  Including WINVGA16.com in AUTOEXEC.bat will change pink to light
  2500. magenta for all DOS applications in and out of Windows.  Running it within a
  2501. Windows DOS session will change the color for only that DOS session.
  2502. WINVGA16.com will not work if run in WINSTART.bat because it is not a TSR.
  2503.  
  2504. Some 256-color drivers for Windows apparently assume that the OEM 256-color
  2505. palette has been loaded when the 256-color mode was selected, and never define
  2506. the colors that Windows will use.  Because of this, ANSIPLUS normally does not
  2507. load its default colors when a 256-color mode is selected under Windows.  This
  2508. can be overridden by a configurable feature.
  2509.  
  2510.  
  2511. Beep Tone
  2512.  
  2513. When Windows is running in 386 Enhanced mode, and a DOS program running in the
  2514. background outputs a Control-G, the background program's virtual 8086 may not
  2515. be running fast enough to accurately time the tone.  Because of this, the tone
  2516. can drag out and sound strange.  Disabling ANSIPLUS tone generation under
  2517. Windows restores the original Windows sound driver, but makes the tone
  2518. frequency and duration non-changeable.
  2519.  
  2520.  
  2521.  
  2522.  
  2523.  
  2524.  
  2525.  
  2526.  
  2527.  
  2528.  
  2529.  
  2530.  
  2531.  
  2532.  
  2533.  
  2534.  
  2535.  
  2536.                                        40
  2537.  
  2538.  
  2539. International Usage
  2540.  
  2541. When the DISPLAY.sys driver is used with Windows 3.0 or 3.1, the colors and
  2542. other variables of either ANSIPLUS or the DOS ANSI.sys driver are not localized
  2543. to each virtual 8086.  This appears to be because DISPLAY.sys is a CON device
  2544. driver that calls the previous CON driver (ie., ANSIPLUS) to control the
  2545. console, so DOS actually has two CON drivers active at the same time.  Windows
  2546. only localizes the first CON driver it finds on the DOS device chain, and this
  2547. will be the most recent CON device installed, which is DISPLAY.sys, not
  2548. ANSIPLUS.  Two system setup changes are required to circumvent the problem:
  2549.  
  2550.  (1) Enter the following command to change the name of the ANSIPLUS driver in
  2551.      memory from "CON" to "CONAPLUS":
  2552.  
  2553.          SETAPLUS LOCALCON
  2554.  
  2555.      This command is automatically inserted into AUTOEXEC.bat by the ANSIPLUS
  2556.      INSTALL program when DISPLAY.sys is detected.
  2557.  
  2558.  (2) Add the following command to the [386Enh] section of the Windows
  2559.      SYSTEM.ini file (put it right after the "LOCAL=CON" line):
  2560.  
  2561.          LOCAL=CONAPLUS
  2562.  
  2563.      This causes Windows to localize the ANSIPLUS driver to each virtual 8086.
  2564.      The SYSTEM.ini file is not altered by the ANSIPLUS INSTALL program.
  2565.  
  2566. If the DISPLAY.sys driver is in use and ANSIPLUS shared code has been loaded
  2567. into expanded memory, the SETAPLUS LOCALCON command must be executed before
  2568. Windows is started, and the LOCAL=CONAPLUS line MUST be added to SYSTEM.ini!
  2569. If it is not, Windows will probably crash the first time a DOS program or
  2570. session is started.
  2571.  
  2572. These system setup changes are totally unnecessary if the DISPLAY.sys driver is
  2573. not being used.
  2574.  
  2575.  
  2576.  
  2577.  
  2578.  
  2579.  
  2580.  
  2581.  
  2582.  
  2583.  
  2584.  
  2585.  
  2586.  
  2587.  
  2588.  
  2589.  
  2590.  
  2591.  
  2592.  
  2593.  
  2594.  
  2595.                                        41
  2596.  
  2597.  
  2598.                   ANSIPLUS and the 4DOS or NDOS Command Shells
  2599.  
  2600. The ANSIPLUS driver is compatible with the 4DOS and NDOS command shells.  Two
  2601. ANSIPLUS features are specifically adapted to 4DOS/NDOS:
  2602.  
  2603.  * ANSIPLUS supports key stacking (for 4DOS 4.0+ and NDOS Version 7.0+), so the
  2604.    KSTACK.com TSR does not need to be loaded.  When ANSIPLUS key stacking is
  2605.    enabled, ANSIPLUS emulates the 4DOS/NDOS Int 2Fh function D44Fh key stacking
  2606.    interface, so the 4DOS/NDOS KEYSTACK command will work, and loading the
  2607.    KSTACK.com driver will report that it is already installed.
  2608.  
  2609.    ANSIPLUS key stacking capacity is limited to the size of ANSIPLUS's key
  2610.    buffer, which is configurable by INSTALL/NEWAPLUS up to 512 keys.  ANSIPLUS
  2611.    key stacking can be disabled if KSTACK.com or KEYSTACK.sys is preferred.
  2612.  
  2613.  * The SETCOLOR.exe utility program can be used as a replacement for the 4DOS
  2614.    or NDOS internal COLOR command, since SETCOLOR supports the syntax and all
  2615.    options of COLOR, plus many additional options.  To do this, two commands
  2616.    should be added to AUTOEXEC.bat:
  2617.  
  2618.         SETDOS /i-COLOR
  2619.         ALIAS COLOR SETCOLOR
  2620.  
  2621.  
  2622.                    ANSIPLUS EXTENSIONS AND THE ANSI STANDARD
  2623.  
  2624. ANSIPLUS uses a number of added control parameters and includes entire new
  2625. control functions that are not part of the ANSI X3.64 standard, so do not
  2626. expect them to be supported by any other drivers or devices.  The following
  2627. added ANSIPLUS functions are not standard ANSI:
  2628.  
  2629.     Esc [!#t            Select character set height
  2630.     Esc [!#;...;#e      Select graphics mode text treatment options
  2631.     Esc [!#v            Select video page
  2632.     Esc [!#;#;#;#;#c    Define colors available, select palette, setup blinking
  2633.     Esc [!#;...;#d      Enable or disable ANSIPLUS driver features
  2634.     Esc [!#;...;#g      Define Control-G beep tone
  2635.     Esc [!#;...;#k      Add keys to keyboard buffer
  2636.  
  2637. The following ANSIPLUS functions accept standard ANSI parameters, but also
  2638. accept added non-standard parameters:
  2639.  
  2640.     Esc [#;#h           Set video mode
  2641.     Esc [#s             Save cursor position, video mode, etc.
  2642.     Esc [#u             Restore cursor position, video mode, etc.
  2643.     Esc [#;#J           Clear the screen
  2644.     Esc [#;#;#K         Clear a line
  2645.     Esc [#;#L           Insert lines on the screen
  2646.     Esc [#;#M           Delete lines from the screen
  2647.     Esc [#;#@           Insert characters on a line
  2648.     Esc [#;#P           Delete characters from a line
  2649.     Esc [#;...;#m       Select current color attributes for output characters
  2650.     Esc [#;#n           Query ANSIPLUS status: cursor position, colors, etc.
  2651.     Esc [#;...;#p       Define key reassignment
  2652.  
  2653.  
  2654.                                        42
  2655.  
  2656.  
  2657.                     ESCAPE SEQUENCE RECOGNIZER ENHANCEMENTS
  2658.  
  2659. To simplify program generation of control sequences, the ANSIPLUS escape
  2660. sequence recognizer syntax has been relaxed:
  2661.  
  2662.  * Blanks between parameters in escape sequences are ignored;
  2663.  
  2664.  * Commas are allowed as separators in addition to semicolons;
  2665.  
  2666.  * Either single or double quotes may be used around character parameters;
  2667.  
  2668.  * Parameter values over 255 (i.e., up to 32,767) are accepted for certain
  2669.    commands. Plus and minus signs are also accepted.
  2670.  
  2671. Unrecognized escape sequences are passed through by the driver unaltered.  The
  2672. Esc character is trapped only when followed by a left bracket ("["), so
  2673. programs that write the escape character (a left arrow) to the screen will
  2674. continue to do so after the driver is installed.
  2675.  
  2676.  
  2677.                    DIRECT ACCESS TO VIDEO RAM VS. BIOS CALLS
  2678.  
  2679. ANSIPLUS uses direct access to video RAM in all VGA/EGA text and most common
  2680. graphics modes.  However, BIOS calls will be used to output characters for
  2681. three classes of graphics modes:
  2682.  
  2683.  * Modes with 256 colors;
  2684.  
  2685.  * Modes that require more than 64K bytes of video RAM (i.e., 16 color graphics
  2686.    modes exceeding 800x600 resolution); and
  2687.  
  2688.  * Unrecognized (usually CGA or Hercules) graphics modes.
  2689.  
  2690. When BIOS calls are used, output is much slower, and "transparent" mode output,
  2691. graphics mode text treatments, and insert/delete characters are also not
  2692. supported.  Future versions of ANSIPLUS may extend direct video RAM access to
  2693. some of these modes.
  2694.  
  2695.  
  2696.                               INSTALLATION CHECKS
  2697.  
  2698. ANSIPLUS responds to the Int 2Fh test for ANSI.sys installation.  When Int 2Fh
  2699. is called with AX=1A00h, ANSIPLUS will return AL=0FFh to indicate that ANSI.sys
  2700. is installed.
  2701.  
  2702. The Int 2Fh response is expanded if registers BX=414Eh ("AN"), CX=5349h ("SI")
  2703. and DX=2B2Bh ("++").  Then, in addition to returning AL=0FFh, ANSIPLUS returns
  2704. a pointer in ES:BX to the ANSIPLUS Int 29h entry point, and, for Version 3.10
  2705. or later ANSIPLUS drivers, the major driver version number is returned in CH
  2706. and minor version number in CL.  A further installation confirmation can be
  2707. made by checking the 8 bytes at ES:[BX-12] for the string "ANSIPLUS".  The
  2708. ANSIPLUS version number will be a 4 character string at ES:[BX-4], containing,
  2709. for example, "3.10".
  2710.  
  2711.  
  2712.  
  2713.                                        43
  2714.  
  2715.                                HOOKED INTERRUPTS
  2716.  
  2717. To implement all its features, ANSIPLUS attaches itself to nine system
  2718. interrupts.  Two are replaced (1Bh and 29h), and the remaining 7 are
  2719. supplemented (i.e., ANSIPLUS calls the original interrupt but extends its
  2720. function).  If possible, ANSIPLUS should always be installed after any other
  2721. drivers that take over any of these interrupts without passing calls through.
  2722. The following table lists the ANSIPLUS hooked interrupts and reasons for each:
  2723.  
  2724. +------------------------------------------------------------------------------+
  2725. |                                  Table 6-1                                   |
  2726. |                          ANSIPLUS Hooked Interrupts                          |
  2727. +----------------------+-------------------------------------------------------+
  2728. |Interrupt Description | Reason                                                |
  2729. +----------------------+-------------------------------------------------------+
  2730. |1Bh Keyboard Break    | Promote Control-Break to front of key buffer          |
  2731. |                      |                                                       |
  2732. |29h DOS Write Char    | Faster DOS screen output                              |
  2733. |                      |                                                       |
  2734. |09h Key Event         | Screen saver; scroll lock; scroll-back; key buffer    |
  2735. |                      | extension; smooth scroll toggle; other special key    |
  2736. |                      | processing                                            |
  2737. |                      |                                                       |
  2738. |10h BIOS Video        | Palette/DAC control; beep tone generation; screen     |
  2739. |                      | saver; smooth scroll; scroll lock; scroll-back; BIOS  |
  2740. |                      | Write TTY ANSI trap                                   |
  2741. |                      |                                                       |
  2742. |15h System Services   | Key processing                                        |
  2743. |                      |                                                       |
  2744. |16h BIOS Get Key      | Key buffer management; highlighted key echo; scroll-  |
  2745. |                      | lock and scroll-back; key reassignment; repeat rate   |
  2746. |                      |                                                       |
  2747. |1Ch User Timer Tick   | Screen saver; smooth scroll; color blinking; beep tone|
  2748. |                      | generation                                            |
  2749. |                      |                                                       |
  2750. |2Fh Multiplex         | Installation checks; special functions; Windows init  |
  2751. |                      | and exit processing; 4DOS/NDOS key stacking           |
  2752. |                      |                                                       |
  2753. |74h PS/2 Mouse Event  | Screen saver                                          |
  2754. +----------------------+-------------------------------------------------------+
  2755.  
  2756. The DOS KEYB program for international keyboard support hooks the Int 09h Key
  2757. Event interrupt without passing calls through to whatever was installed before
  2758. (ie., to ANSIPLUS). Therefore, if the KEYB program is being used to set up the
  2759. keyboard, the following command MUST be executed after loading KEYB, otherwise
  2760. most ANSIPLUS keyboard related features will not work:
  2761.  
  2762.     SETAPLUS LINK KEYEVENT
  2763.  
  2764. This command will re-install ANSIPLUS on the key event interrupt. The INSTALL
  2765. program will automatically add this command to AUTOEXEC.bat if it finds a
  2766. reference in it to KEYB.
  2767.  
  2768. If the DISPLAY.sys device driver for code page switching is being used, the
  2769. ANSIPLUS.sys device driver must be installed before DISPLAY.sys in CONFIG.sys.
  2770. The INSTALL program will also automatically handle this.
  2771.  
  2772.                                        44
  2773.  
  2774.  
  2775.  
  2776. If you suspect that a system interrupt is no longer accessible to ANSIPLUS
  2777. because of a TSR or device driver that has been loaded after ANSIPLUS, you can
  2778. test this with the command:
  2779.  
  2780.     SETAPLUS INTERRUPT <intnum>
  2781.  
  2782. which displays, to the extent possible, the chain of programs attached to any
  2783. selected interrupt.  The <intnum> may be either a hexadecimal interrupt number
  2784. or one of the following keywords:
  2785.  
  2786.       KEYEVENT       Interrupt 09h Key Event
  2787.       VIDEO          Interrupt 10h Video
  2788.       SYSTEMSERVICE  Interrupt 15h System Services
  2789.       KEYREQUEST     Interrupt 16h Keyboard Request
  2790.       KEYBREAK       Interrupt 1Bh Keyboard Break
  2791.       TIMERTICK      Interrupt 1Ch User Timer Tick
  2792.       DOSTTY         Interrupt 29h DOS Fast TTY Output
  2793.       MULTIPLEX      Interrupt 2Fh Multiplex, and
  2794.       PS2MOUSE       Interrupt 74h PS/2 Mouse Event
  2795.  
  2796. If ANSIPLUS is missing from the listing, it can be relinked with the command:
  2797.  
  2798.     SETAPLUS LINK <intnum>
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.  
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.                                        45
  2832.  
  2833.